Fix return values for stubs
[freeglut] / src / gles_stubs.c
1 /* TODO: implement me! */
2
3 #include <GL/freeglut.h>
4 #include "fg_internal.h"
5
6 void fgDeactivateMenu( SFG_Window *window ) {
7   fprintf(stderr, "fgDeactivateMenu: STUB\n");
8 }
9 void fgDisplayMenu( void ) {
10   fprintf(stderr, "fgDisplayMenu: STUB\n");
11 }
12 void fgUpdateMenuHighlight ( SFG_Menu *menu ) {
13   fprintf(stderr, "fgUpdateMenuHighlight: STUB\n");
14 }
15 GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
16                               int mouse_x, int mouse_y )  {
17   fprintf(stderr, "fgCheckActiveMenu: STUB\n");
18   return GL_FALSE;
19 }
20
21 int  glutCreateMenu( void (* callback)( int menu ) ) {}
22 void glutDestroyMenu( int menu ) {}
23 int  glutGetMenu( void ) { return 0; }
24 void glutSetMenu( int menu ) {}
25 void glutAddMenuEntry( const char* label, int value ) {}
26 void glutAddSubMenu( const char* label, int subMenu ) {}
27 void glutChangeToMenuEntry( int item, const char* label, int value ) {}
28 void glutChangeToSubMenu( int item, const char* label, int value ) {}
29 void glutRemoveMenuItem( int item ) {}
30 void glutAttachMenu( int button ) {}
31 void glutDetachMenu( int button ) {}
32
33 void glutBitmapCharacter( void* font, int character ) {}
34 int  glutBitmapWidth( void* font, int character ) { return 0; }
35 void glutStrokeCharacter( void* font, int character ) {}
36 int  glutStrokeWidth( void* font, int character ) { return 0; }
37 int  glutBitmapLength( void* font, const unsigned char* string ) { return 0; }
38 int  glutStrokeLength( void* font, const unsigned char* string ) { return 0; }
39
40 void *glutGetMenuData( void ) {}
41 void  glutSetMenuData(void* data) {}
42
43 int     glutBitmapHeight( void* font ) { return 0; }
44 GLfloat glutStrokeHeight( void* font ) { return 0; }
45 void    glutBitmapString( void* font, const unsigned char *string ) {}
46 void    glutStrokeString( void* font, const unsigned char *string ) {}