Results 1 to 2 of 2

Thread: Opengl method unavailable

  1. #1
    Newbie Newbie
    Join Date
    Jun 2014

    Opengl method unavailable

    I am reading the opengl bible 6th edition which is probaby written on opengl 4.2
    I am on windows and msvc12. Some newer methods like glbufferclear()

    I have upadted the graphics driver and included the latest glut. Some methods are working and compling (probably the older version methods)

    note: i am using i5 3550 inbuilt graphics card (hd2500)

    How to fix it? I am having trouble to follow the book.

    Thanks in advance.

  2. #2
    Senior Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Innsbruck, Austria
    By "method unvailable" I assume you mean that the code doesn't compile because the declarations are missing?

    The Windows(R) gl.h contains declarations of the OpenGL(R) 1.1 functions and constants, implemented in opengl32.dll.

    When using newer functions, you have to declare the apropriate function pointers and use the wglGetProcAddress function, implemented in opengl32.dll and
    declared in the system header, to load the functions.

    There are dozens of libraries out there that can do that for you. I personally recomend GLEW

Similar Threads

  1. GLM: "" site unavailable
    By BlendBand in forum OpenGL: General
    Replies: 2
    Last Post: 04-06-2017, 11:29 PM
  2. Timer query result unavailable after swap buffers call
    By Petwoip in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-10-2013, 03:26 PM
  3. In case glLockArraysEXT is unavailable
    By wtherapy in forum OpenGL: General
    Replies: 4
    Last Post: 12-30-2010, 07:25 AM
  4. NV: gl_PrimitiveID unavailable in TC shader
    By Chris Lux in forum OpenGL: Drivers
    Replies: 2
    Last Post: 11-17-2010, 09:51 AM
  5. Replace OpenGL Line Method
    By swrittenb in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 10-19-2003, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean