You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't try OGLplus with GL bindings yet (and it is not supported in the build system), but generally you should include the glBinding headers /before/ any oglplus headers and call the glBinding initialization code before calling any oglplus functions or creating oglplus GL-object-related classes:
#include <glbinding/gl/gl.h>
#include <glbinding/Binding.h>
#include <oglplus/all.hpp>
using namespace gl;
int main()
{
// create context, e.g. using GLFW, Qt, SDL, GLUT, ...
glbinding::Binding::initialize();
oglplus::Context ctx;
ctx.ClearColor(1.0, 0.0, 0.0, 0.0);
ctx.Clear().ColorBuffer();
...
}
Hello,
How should one go about using glBinding ( https://github.com/cginternals/glbinding ) as the extension loading library for oglplus in place of glew?
Thanks
The text was updated successfully, but these errors were encountered: