Sometimes I have this coding itch, that doesn’t let me do anything until I’m done with developing an idea. I actually thought that I wouldn’t bother implementing the mockups I did earlier today. But in my way home I realized the implementation was actually trivial. With no further delays, the next screen is not a mockup, but a real screenshot from a patched Blender:
The complete patch is in the Blender Tracker, but the essence of the code is:
int barsize = 60;
// draw in black first
glColor3ub(0, 0, 0);
glBegin(GL_QUADS);
glVertex2f(xco + 1 + barsize, yco + 10);
glVertex2f(xco + (1 - percentage) * barsize - 1, yco + 10);
glVertex2f(xco + 1 + (1 - percentage) * barsize - 1, yco - 1);
glVertex2f(xco + barsize, yco - 1);
glEnd();
Any comments and feedbacks are still appreciated.
Time to sleep 😉