matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
491 stars 72 forks source link

some improvements for older gl versions #85

Closed Extrunder closed 9 years ago

Extrunder commented 9 years ago

I successfully ported OGLplus for using with Marmalade. Here are a bit of changes which I think will be helpfull. added guards for using shapes without GL_PRIMITIVE_RESTART added workaround for using shapes::ShapeWrapper without VAO removed some compiler warnings (force cast to bool)

Extrunder commented 9 years ago

Thanks for review, excuse me for EGL typo and tabs. There was issue (not remembered what kind exectly, something with implicit conversion) while compiling code with Marmalade on Mac, so I added this two overloads. Anyway I made separate branch for Marmalade workarounds. Thanks for OGLplus, it is pleasure to code with it!

matus-chochlik commented 9 years ago

No problem and thanks again,

do you use some older compiler? I'm testing OGLplus with recent versions of GCC, Clang and MSVC and none of them complains.