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 4 of 4

Thread: Including glext with VS2012

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2013
    Posts
    20

    Including glext with VS2012

    Hello there,

    I'm in the process of switching from java (LWJGL) to VC++ with Visual Studio 2012. I'm having some problems with setting up the basic OpenGL references:
    I need OpenGL 3.1+ support so I'm trying to include the glext.h file.

    So I read that I just have to donwload the glext.h file and put it in the folder containing my gl.h and glu.h (gl\). But when I'm trying to do this (and only this) I get a linker error when calling glGenBuffers(...). What else is required to get it working?
    Sorry for this question but I'm very new to the whole C/C++ library system.

    Thanks in advance,
    elfeck

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2011
    Location
    USA
    Posts
    14
    Quote Originally Posted by elfeck View Post
    I'm very new to the whole C/C++ library system.
    If you're new to C++, or don't know how to use libraries in your working environment, or don't know how to compile source code, or how to link object files, or how to use a C++ debugger, then you're not ready for OpenGL. Please learn to walk before you try to run. The internet has more than enough resources to get you started with these basic topics. When programming in OpenGL, the C++ library system should be the least of your problems.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2013
    Posts
    20
    I agree with you. Knowledge of language basics is important and requirement for using a somewhat complicated library. Point is, I already am pretty "fluent" in OpenGL and just trying to port my framework it to another language.
    Further I thought this was a OpenGL related question and I couldn't find helpful information elsewhere. So just a hint or a quick answer would be really appreciated.

    Thanks,
    elfeck

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2011
    Location
    USA
    Posts
    14
    My reaction was in response to your apology for being "new to the whole C/C++ library system" which is a beginner's remark. Glext.h does not load GL functions, but defines the GL symbols beyond GL 1.1. To use functions such as glGenBuffers(), you need to either use an OpenGL loading library such as GLEW, Gl3w, or GL Load, or use WGL to get the function pointers manually yourself. Details can be found at http://www.opengl.org/wiki/Load_OpenGL_Functions

Posting Permissions

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