With a method like glColor4f(0f, 0f, 0f, 0f);
, it sets the values to whatever parameters one puts in. However, what I would like to do is only slightly change a color. Is there any existing OpenGL method that will add or subtract its parameters to the existing colors it has?
The only other way of doing this that I can come up with is first getting its color values, then editing those how I want to, and finally sending them back with glColor4f()
.
So, in closing, I would like to know if there is either a method for editing existing RGBA, or at least retrieving an existing RGBA.