Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Visual C++ 2008 and OpenGL 3.0

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    2

    Visual C++ 2008 and OpenGL 3.0

    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?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: Visual C++ 2008 and OpenGL 3.0

    You start in about same way as you start with OpenGL 2.1. 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.

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,575

    Re: Visual C++ 2008 and OpenGL 3.0

    Just need the extensions headers, all the new entry points have to be retrieved dynamically.
    Get the *ext.h here :
    http://www.opengl.org/registry/

  4. #4
    Super Moderator Frequent Contributor Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    937

    Re: Visual C++ 2008 and OpenGL 3.0

    glfw supports OpenGL 3? I can't find anything ...

  5. #5
    Junior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: Visual C++ 2008 and OpenGL 3.0

    There is special 2.x-lite branch that supports GL3: http://glfw.svn.sourceforge.net/view...ches/2.x-lite/
    Basically you do following before opening window:
    Code :
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 0);
    glfwOpenWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // or skip this

  6. #6
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    2

    Re: Visual C++ 2008 and OpenGL 3.0

    Ok, thanks for the info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •