Get current color

Viewed 6535

Im using glColor4f(1.0f, 1.0f, 1.0f, alpha_); to set transparency to primitives I'm drawing.

However I'd like to be able to read the current opengl alpha value. Is that possible?

e.g.

float current_alpha = glGetAlpha(); //???
glColor4f(1.0f, 1.0f, 1.0f, alpha_*current_alpha);
2 Answers
Related