Original Post
Hi! I''m trying some OpenGL in linux and have defined some simple colors and a current value. They are all globals.
// colors
const float Black[] = { 0.0, 0.0, 0.0 };
const float Red[] = { 1.0, 0.0, 0.0 };
const float Green[] = { 0.0, 1.0, 0.0 };
const float Blue[] = { 0.0, 0.0, 1.0 };
const float Magenta[] = { 1.0, 0.0, 1.0 };
const float Cyan[] = { 0.0, 1.0, 1.0 };
const float Yellow[] = { 1.0, 1.0, 0.0 };
const float White[] = { 1.0, 1.0, 1.0 };
const float currentColor[] = White;
I am declaring or assigning the currentColor value wrong. I want to be able to change my currentColor in one of my callback functions or even my main function. Does anyone know where I am going astray? Thanks!!
-- master_ball --
------------------------------
We R 138