| /* $Id: xfont.c,v 1.2 1999/11/05 08:00:49 brianp Exp $ */ | |||||
| /* $Id: xfont.c,v 1.3 1999/11/05 08:12:46 brianp Exp $ */ | |||||
| /* | /* | ||||
| * Mesa 3-D graphics library | * Mesa 3-D graphics library | ||||
| static void redraw( Display *dpy, Window w ) | static void redraw( Display *dpy, Window w ) | ||||
| { | { | ||||
| static const char *text = "This is glXUseXFont()"; | static const char *text = "This is glXUseXFont()"; | ||||
| printf("Redraw event\n"); | |||||
| glClear( GL_COLOR_BUFFER_BIT ); | glClear( GL_COLOR_BUFFER_BIT ); | ||||
| static void resize( unsigned int width, unsigned int height ) | static void resize( unsigned int width, unsigned int height ) | ||||
| { | { | ||||
| printf("Resize event\n"); | |||||
| glViewport( 0, 0, width, height ); | glViewport( 0, 0, width, height ); | ||||
| glMatrixMode( GL_PROJECTION ); | glMatrixMode( GL_PROJECTION ); | ||||
| glLoadIdentity(); | glLoadIdentity(); |