Browse Source

Update mobility interface

caseclosed
Alibek Omarov 7 years ago
parent
commit
0c515e3464
  1. 14
      engine/mobility_int.h

14
engine/mobility_int.h

@ -65,13 +65,21 @@ typedef struct mobile_engfuncs_s
void (*pfnTouchSetClientOnly)( unsigned char state ); void (*pfnTouchSetClientOnly)( unsigned char state );
// Clean defaults list // Clean defaults list
void (*pfnTouchResetDefaultButtons)(); void (*pfnTouchResetDefaultButtons)( void );
// Draw scaled font for client
int (*pfnDrawScaledCharacter)( int x, int y, int number, int r, int g, int b, float scale );
void (*pfnSys_Warn)( const char *format, ... );
// Get native object for current platform.
// Pass NULL to arguments to receive an array of available objects or NULL if nothing
void *(*pfnGetNativeObject)( const char *obj );
void (*pfnSetCustomClientID)( const char *id );
// To be continued... // To be continued...
} mobile_engfuncs_t; } mobile_engfuncs_t;
extern mobile_engfuncs_t *gMobileEngfuncs;
// function exported from client // function exported from client
// returns 0 on no error otherwise error // returns 0 on no error otherwise error
typedef int (*pfnMobilityInterface)( mobile_engfuncs_t *gMobileEngfuncs ); typedef int (*pfnMobilityInterface)( mobile_engfuncs_t *gMobileEngfuncs );

Loading…
Cancel
Save