Darken the entire UI
Posted: Sat Jun 06, 2015 18:24
Hiya CEGUI folks,
I have an unusual coding problem.
The game I'm working on now has a day/night cycle. At nighttime, the UI looks way too bright against the backdrop of the darkened game. What I'd like to do is slightly darken the UI at night.
I was hoping to find a simple way of doing this, without having to do something like iterate over every UI element and adjust the color manually.
I'm using CEGUI 0.8.2 (and will update to 0.8.4 or the latest sometime before launch).
I'm using the GLRenderer. (GL3Renderer is broken in 0.8.2, but I'll switch to that in 0.8.4, which appears to have a fix).
My only lead so far is here:
file: cegui-0.8.2\cegui\src\RendererModules\OpenGL\GLGeometryBuffer.cpp
function: OpenGLGeometryBuffer::draw()
Is this function responsible for drawing everything in CEGUI?
If so, maybe I can muck around with the values fed into glColorPointer?
Anyway, I don't really expect a bunch of help with this very one-off issue. But in case anybody has any thoughts, I'd very much appreciate it.
Thanks!
I have an unusual coding problem.
The game I'm working on now has a day/night cycle. At nighttime, the UI looks way too bright against the backdrop of the darkened game. What I'd like to do is slightly darken the UI at night.
I was hoping to find a simple way of doing this, without having to do something like iterate over every UI element and adjust the color manually.
I'm using CEGUI 0.8.2 (and will update to 0.8.4 or the latest sometime before launch).
I'm using the GLRenderer. (GL3Renderer is broken in 0.8.2, but I'll switch to that in 0.8.4, which appears to have a fix).
My only lead so far is here:
file: cegui-0.8.2\cegui\src\RendererModules\OpenGL\GLGeometryBuffer.cpp
function: OpenGLGeometryBuffer::draw()
Is this function responsible for drawing everything in CEGUI?
If so, maybe I can muck around with the values fed into glColorPointer?
Anyway, I don't really expect a bunch of help with this very one-off issue. But in case anybody has any thoughts, I'd very much appreciate it.
Thanks!