diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-07 10:27:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-07 10:27:52 -0700 |
commit | a4507e931b65c154e338fe420086264676aaf717 (patch) | |
tree | b500d7a21aa683f6a182bc0a61a08aeccfe37694 /tests | |
parent | dbea06d1d8c0c8ce4eb2651891dc905d71f6afd7 (diff) |
add full support for glColorX both in glBegin/End and out
Diffstat (limited to 'tests')
-rw-r--r-- | tests/screenshot-gray-purple.png | bin | 203952 -> 242425 bytes | |||
-rw-r--r-- | tests/sdl_ogl.c | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/screenshot-gray-purple.png b/tests/screenshot-gray-purple.png Binary files differindex 13881779..514b29a1 100644 --- a/tests/screenshot-gray-purple.png +++ b/tests/screenshot-gray-purple.png 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 |