I have a cube that I want to paint with same color on all six sides. I must use glColorMaterial() calls (or glMaterial() ?) in order for lights to work correctly. If I use
glColor4f() call then this does not work with lights.
Can some help with providing me with sequence of commands to paint all six sides with
(1,0,0,1) red color and 100% opacity? This must work in Android.
I have a cube that I want to paint with same color on all
Share
You can use
glColorMaterialto set specify the material parameters that should track the current color. For instance, useand then set the current color using
glColor4f(...). Don’t forget theglEnablecall!