d-gamedev-team / dimgui

dimgui is a D port of the imgui OpenGL GUI library.
zlib License
48 stars 13 forks source link

Add support for GL v2.x #9

Open AndrejMitrovic opened 8 years ago

AndrejMitrovic commented 8 years ago

Even though it's old the library shouldn't technically depend on v3.x. The imgui project has such an example.

First problem I've noticed is that the glwtf dependency tries to load GL versions down to v3.0 but not older:

immutable OGLVT[] OGLVTS = [OGLVT(4, 3), OGLVT(4, 2), OGLVT(4, 1), OGLVT(4, 0),
                            OGLVT(3, 3), OGLVT(3, 2), OGLVT(3, 1), OGLVT(3, 0)];

We could try to just not use glwtf in the samples. I merely used it for convenience.