X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgles_stubs.c;h=bc87c0d87f646a5fc364f09d9a611024eb34501f;hb=002dae879eda329f38fe65cb6f99d4f481a2eb47;hp=c8437ceba854029bfd77e794006e031c2e5b9977;hpb=4341597b9c78c5dc0541dc2e88fe23577efa438b;p=freeglut diff --git a/src/gles_stubs.c b/src/gles_stubs.c index c8437ce..bc87c0d 100644 --- a/src/gles_stubs.c +++ b/src/gles_stubs.c @@ -1,3 +1,5 @@ +/* TODO: implement me! */ + #include #include "fg_internal.h" @@ -7,3 +9,41 @@ void fgDeactivateMenu( SFG_Window *window ) { void fgDisplayMenu( void ) { fprintf(stderr, "fgDisplayMenu: STUB\n"); } +void fgUpdateMenuHighlight ( SFG_Menu *menu ) { + fprintf(stderr, "fgUpdateMenuHighlight: STUB\n"); +} +GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed, + int mouse_x, int mouse_y ) { + fprintf(stderr, "fgCheckActiveMenu: STUB\n"); + return GL_FALSE; +} + +int glutCreateMenu( void (* callback)( int menu ) ) { return 0; } +void glutDestroyMenu( int menu ) {} +int glutGetMenu( void ) { return 0; } +void glutSetMenu( int menu ) {} +void glutAddMenuEntry( const char* label, int value ) {} +void glutAddSubMenu( const char* label, int subMenu ) {} +void glutChangeToMenuEntry( int item, const char* label, int value ) {} +void glutChangeToSubMenu( int item, const char* label, int value ) {} +void glutRemoveMenuItem( int item ) {} +void glutAttachMenu( int button ) {} +void glutDetachMenu( int button ) {} +void glutSetMenuFont( int menuID, void* font ) {} + +void glutBitmapCharacter( void* font, int character ) {} +int glutBitmapWidth( void* font, int character ) { return 0; } +void glutStrokeCharacter( void* font, int character ) {} +int glutStrokeWidth( void* font, int character ) { return 0; } +GLfloat glutStrokeWidthf( void* font, int character ) { return 0.0f; } +int glutBitmapLength( void* font, const unsigned char* string ) { return 0; } +int glutStrokeLength( void* font, const unsigned char* string ) { return 0; } +GLfloat glutStrokeLengthf( void* font, const unsigned char *string ) { return 0.0f; } + +void *glutGetMenuData( void ) { return NULL; } +void glutSetMenuData(void* data) {} + +int glutBitmapHeight( void* font ) { return 0; } +GLfloat glutStrokeHeight( void* font ) { return 0; } +void glutBitmapString( void* font, const unsigned char *string ) {} +void glutStrokeString( void* font, const unsigned char *string ) {}