diff options
Diffstat (limited to 'tests/sdl_ogl.c')
-rw-r--r-- | tests/sdl_ogl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sdl_ogl.c b/tests/sdl_ogl.c index 570a0e10..6b6a5b4a 100644 --- a/tests/sdl_ogl.c +++ b/tests/sdl_ogl.c @@ -144,6 +144,7 @@ int main(int argc, char *argv[]) glDisable(GL_TEXTURE_2D); #endif + glColor3ub(90, 255, 255); glBegin( GL_QUADS ); glVertex3f( 10, 410, 0 ); glVertex3f( 300, 410, 0 ); @@ -151,6 +152,13 @@ int main(int argc, char *argv[]) glVertex3f( 10, 470, 0 ); glEnd(); + glBegin( GL_QUADS ); + glColor3f(1.0, 0, 1.0); glVertex3f( 410, 410, 0 ); + glColor3f(0, 1.0, 0); glVertex3f( 600, 410, 0 ); + glColor3f(0, 0, 1.0); glVertex3f( 600, 480, 0 ); + glColor3f(1.0, 1.0, 1.0); glVertex3f( 410, 470, 0 ); + glEnd(); + SDL_GL_SwapBuffers(); #if !EMSCRIPTEN |