What is the best way to make a constant for glColor3f?

What is the best way to make a constant for glColor3f

For example I want to make a global so I can change the value of the 3 floats when I press a button. But I don’t want to make 3 constants if I can avoid it. Can the method use Vector or array?

Sounds like you should get familiar with the programming language you are using first (or software development in general) before starting to work with (legacy) OpenGL®.

Anyhow, there is a glColor3fv that takes an array of three floats.

[QUOTE=Agent D;1262679]Sounds like you should get familiar with the programming language you are using first (or software development in general) before starting to work with (legacy) OpenGL®.

Anyhow, there is a glColor3fv that takes an array of three floats.[/QUOTE]

You got me good with that zinger xD