aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_ogl.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-07 10:27:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-07 10:27:52 -0700
commita4507e931b65c154e338fe420086264676aaf717 (patch)
treeb500d7a21aa683f6a182bc0a61a08aeccfe37694 /tests/sdl_ogl.c
parentdbea06d1d8c0c8ce4eb2651891dc905d71f6afd7 (diff)
add full support for glColorX both in glBegin/End and out
Diffstat (limited to 'tests/sdl_ogl.c')
-rw-r--r--tests/sdl_ogl.c8
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