Fix return values for stubs

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1235 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-04-02 22:58:07 +00:00
parent 7e5af9b5b5
commit b33e1bbffe

View File

@ -15,11 +15,12 @@ void fgUpdateMenuHighlight ( SFG_Menu *menu ) {
GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed, GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
int mouse_x, int mouse_y ) { int mouse_x, int mouse_y ) {
fprintf(stderr, "fgCheckActiveMenu: STUB\n"); fprintf(stderr, "fgCheckActiveMenu: STUB\n");
return GL_FALSE;
} }
int glutCreateMenu( void (* callback)( int menu ) ) {} int glutCreateMenu( void (* callback)( int menu ) ) {}
void glutDestroyMenu( int menu ) {} void glutDestroyMenu( int menu ) {}
int glutGetMenu( void ) {} int glutGetMenu( void ) { return 0; }
void glutSetMenu( int menu ) {} void glutSetMenu( int menu ) {}
void glutAddMenuEntry( const char* label, int value ) {} void glutAddMenuEntry( const char* label, int value ) {}
void glutAddSubMenu( const char* label, int subMenu ) {} void glutAddSubMenu( const char* label, int subMenu ) {}
@ -30,16 +31,16 @@ void glutAttachMenu( int button ) {}
void glutDetachMenu( int button ) {} void glutDetachMenu( int button ) {}
void glutBitmapCharacter( void* font, int character ) {} void glutBitmapCharacter( void* font, int character ) {}
int glutBitmapWidth( void* font, int character ) {} int glutBitmapWidth( void* font, int character ) { return 0; }
void glutStrokeCharacter( void* font, int character ) {} void glutStrokeCharacter( void* font, int character ) {}
int glutStrokeWidth( void* font, int character ) {} int glutStrokeWidth( void* font, int character ) { return 0; }
int glutBitmapLength( void* font, const unsigned char* string ) {} int glutBitmapLength( void* font, const unsigned char* string ) { return 0; }
int glutStrokeLength( void* font, const unsigned char* string ) {} int glutStrokeLength( void* font, const unsigned char* string ) { return 0; }
void *glutGetMenuData( void ) {} void *glutGetMenuData( void ) {}
void glutSetMenuData(void* data) {} void glutSetMenuData(void* data) {}
int glutBitmapHeight( void* font ) {} int glutBitmapHeight( void* font ) { return 0; }
GLfloat glutStrokeHeight( void* font ) {} GLfloat glutStrokeHeight( void* font ) { return 0; }
void glutBitmapString( void* font, const unsigned char *string ) {} void glutBitmapString( void* font, const unsigned char *string ) {}
void glutStrokeString( void* font, const unsigned char *string ) {} void glutStrokeString( void* font, const unsigned char *string ) {}