Greetings, so i'm trying to use vertex buffer objects, however, glGenBuffers is throwing me an access violation
Checklist time:
i have glew installed.
i have freeglut installed
included in this order
Greetings, so i'm trying to use vertex buffer objects, however, glGenBuffers is throwing me an access violation
Checklist time:
i have glew installed.
i have freeglut installed
included in this order
i have tried calling it both before and after the context exists, though currently it's being called before, wasn't sure when it needed to be initialised since it's included before and DevIL is initialised before also
anyway, currently if i run
The rendering context is created when you call glutCreateWindow, so you cannot call glweInit before that.
For any non-trivial program I would suggest having a decent logging mechanism in place (at least writing stuff to the console, better to both the console and a file). With a simple macro all logging overhead can be completely removed by #undefing a single define (like _DEBUG which is already prepared for you with MSVC default configurations).perhaps a small side-question ( perhaps not ), are there any standard libraries/functions i can use to pop up a window in case of for example, a error or a specific scenario easily? (ideally something along the lines of windows::showSplashScreen() or showSplashScreen("An error!") or something like that, doesnt even need text or anything, just some external indicator that something has happened without breakpoints.)
glewInit uses the render context that is current. So until you have OpenGL initialize and have wglMakeCurrent set up with a render context glewInit will fail