Jump to content
Posted 10 August 2012 - 04:52 AM
Posted 10 August 2012 - 05:10 AM
Posted 10 August 2012 - 05:43 AM
Posted 10 August 2012 - 05:45 AM
Posted 10 August 2012 - 06:01 AM
When you say that I should use GLEW, then it means that it already contains the necessary header, .lib, .dll files that I need to work with opengl 3.0?
If I do use GLEW, will I still need to download the glext.h from www.opengl.org/registry?
Posted 10 August 2012 - 06:23 AM
OpenGL itself requires nothing new. Everything is already on your system if your graphics card driver supports it. It just needs to be queried via the extension mechanism.
GLEW itself needs to be linked though, as usual for libraries. It can be linked either statically or dynamically. Remember to define GLEW_STATIC before including glew.h if static linking is desired. You should not need anything beyond what is already included with GLEW, but that depends largely on what compiler you are using. The precompiled libraries should work with all flavours of MSVC though.
I never really worked with SDL, so I cannot really answer any questions about that. Both GLFW and SFML seem to support modern OpenGL fine though.
Posted 10 August 2012 - 10:35 AM
Posted 10 August 2012 - 02:01 PM
glGetString(GL_VERSION) still returns 2.1.8781.
Edited by scyfris, 10 August 2012 - 02:04 PM.
Posted 11 August 2012 - 12:23 AM
SDL 1.2 will not create an OpenGL 3 context for you. To get one with SDL, you have to use SDL2 and explicitly request a 3.x context using SDL_GL_SetAttribute with GL_CONTEXT_MAJOR_VERSION and GL_CONTEXT_MINOR_VERSION.
What type of graphics card do you have?