}
}
-static void drawString( char *string, GLfloat x, GLfloat y, GLfloat color[4] )
+static void drawString( const char *string, GLfloat x, GLfloat y,
+ const GLfloat color[4] )
{
glColor4fv( color );
glRasterPos2f( x, y );
}
}
-static void drawStringOutline( char *string, GLfloat x, GLfloat y,
- GLfloat color[4], GLfloat outline[4] )
+static void drawStringOutline( const char *string, GLfloat x, GLfloat y,
+ const GLfloat color[4],
+ const GLfloat outline[4] )
{
drawString( string, x - 1, y, outline );
drawString( string, x + 1, y, outline );
/* No need to call glViewPort here since "draw" calls it! */
}
-static void loadTexture( int width, int height, struct formatInfo *format )
+static void loadTexture( int width, int height,
+ const struct formatInfo *format )
{
int luminanceSize = 0;
int alphaSize = 0;
free( texImage );
}
-static void drawCheck( int w, int h, GLfloat lightCheck[4], GLfloat darkCheck[4] )
+static void drawCheck( int w, int h, const GLfloat lightCheck[4],
+ const GLfloat darkCheck[4] )
{
float dw = 2.0 / w;
float dh = 2.0 / h;
}
static void drawSample( int x, int y, int w, int h,
- struct formatInfo *format, struct envModeInfo *envMode )
+ const struct formatInfo *format,
+ const struct envModeInfo *envMode )
{
glViewport( x, y, w, h );
glScissor( x, y, w, h );
fprintf( stderr, " [s] - toggle smooth shading\n" );
fprintf( stderr, " [t] - toggle texturing\n" );
fprintf( stderr, " [i] - toggle information display\n" );
+ fprintf( stderr, " up/down - select row\n" );
+ fprintf( stderr, " left/right - change row's internal format\n" );
}
int main( int argc, char *argv[] )