Thread: open gl extensions

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    244

    open gl extensions

    how do i get them work?

    so there seems to be 2 ways: either use those wglSomething functions to check for specific functions and store the result ina glXARB function pointer.
    or simply use that
    http://www.opengl.org/registry/SDK/

    sdk library there.
    so i want to go with the second option - but somehow i don't get it to work with my project - the glprocs.c file there won't compile. (errors below)

    so i have such extensions headers in my /usr/include/GL directory, but that sdk comes with its own. so should i overwrite the original headers with the ones from the sdk or better store them in another directory?

    so has anyone used that before (and got it to work)?


    Code:
    glprocs.c: In function ‘void InitBlendColor(GLclampf, GLclampf, GLclampf, GLclampf)’:
    glprocs.c:57: error: invalid conversion from ‘const char*’ to ‘const GLubyte*’
    glprocs.c:57: error:   initializing argument 1 of ‘void (* glXGetProcAddressARB(const GLubyte*))()’
    glprocs.c:64: error: invalid conversion from ‘void*’ to ‘void (*)(GLclampf, GLclampf, GLclampf, GLclampf)’
    
    same error repeat till line >15000 *g*
    edit: im using gcc under fedora.
    Last edited by Raven Arkadon; 08-21-2006 at 08:24 AM.
    signature under construction

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    ack... figured the problem out.
    the glprocs.c is a c file - and i used g++ instead of gcc to compile it... oh well... now i just get like 10k warnings :P
    (compiling with -ansi -pedantic - Wall can be a pain in the *** lol)
    signature under construction

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open GL ?
    By swgh in forum C++ Programming
    Replies: 2
    Last Post: 07-27-2005, 10:05 AM
  2. Open GL v.s Direct X
    By Frantic- in forum C++ Programming
    Replies: 21
    Last Post: 01-28-2005, 11:55 PM
  3. open gl
    By nerdyneo in forum Game Programming
    Replies: 2
    Last Post: 11-14-2003, 04:33 PM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM