code_junkie

OpenGL: inaccurate color?

Nov 12th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. glColor3ui(0x80000000, 0, 0xFF000000);
  2.  
  3. glColor3ui(0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
  4.  
  5. glColor3ui(0xFF000000, 0xFF000000, 0xFF000000);
  6.  
  7. In either event, you'll need to ensure that any state that could
  8. affect the final color has been disabled. The following code will
  9. accomplish this:
  10.  
  11. glDisable (GL_BLEND); glDisable (GL_DITHER);
  12. glDisable (GL_FOG); glDisable (GL_LIGHTING);
  13. glDisable (GL_TEXTURE_1D); glDisable (GL_TEXTURE_2D);
  14. glDisable (GL_TEXTURE_3D); glShadeModel (GL_FLAT);
Add Comment
Please, Sign In to add comment