View Full Version : Visual C++ 2008 and OpenGL 3.0
02-09-2009, 11:11 PM
What i do to start using OpenGL 3.0 on Visual C++ 2008?
I know that it brings OpenGL 1.1 by default so what files do i need and where i can get theme to code in 3.0?
02-10-2009, 01:48 AM
You start in about same way as you start with OpenGL 2.1 (http://www.opengl.org/wiki/Getting_started). Use a lot of entry point loading using GLee, glew, or manually. You just need to create OpenGL in special way to get 3.0 context, or use third part library that will do it for you - for example glfw supports GL3.0 context creation. Or use code from here (http://www.gamedev.net/community/forums/topic.asp?topic_id=512890).
02-10-2009, 02:04 AM
Just need the extensions headers, all the new entry points have to be retrieved dynamically.
Get the *ext.h here :
02-10-2009, 02:45 AM
glfw supports OpenGL 3? I can't find anything ...
02-10-2009, 03:19 AM
There is special 2.x-lite branch that supports GL3: http://glfw.svn.sourceforge.net/viewvc/glfw/branches/2.x-lite/
Basically you do following before opening window:
glfwOpenWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // or skip this
02-13-2009, 07:48 AM
Ok, thanks for the info
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.