jogamp
›
jogl
Login
Register
Re: gl.glColor3f in a loop seems to almost never work?
Posted by
gouessej
on
May 14, 2015; 2:00pm
URL:
https://forum.jogamp.org/gl-glColor3f-in-a-loop-seems-to-almost-never-work-tp4034472p4034483.html
Please read the documentation:
http://docs.oracle.com/javase/7/docs/api/java/awt/Color.html#getBlue()
https://www.opengl.org/sdk/docs/man2/xhtml/glColor.xml
AWT returns a color component in the range [0; 255] whereas OpenGL expects a color component in the range [0;1].
Julien Gouesse |
Personal blog
|
Website
Free forum by Nabble
Edit this page