Archived

This topic is now archived and is closed to further replies.

Songoku

Opengl-shading-language-100

Recommended Posts

Ok i have a question. If i want to use an extension, i have to check if my graphicscard does support this extension then i need functionpointers to use the new functions. My question is: Do i need to have for every new funtion which is provided by the vertex_shader-and fragment_shader a pointer. There are so many new functions i cannot believe that this is the only way to use OpenGLSL.

Share this post


Link to post
Share on other sites
in linux/bsd you can staticaly link against libGL.so...
simply append -DGL_GLEXT_PROTOTYPES to your precompiler flags and include GL/glext.h

on windows you''ll have to use functionpointers...

Share this post


Link to post
Share on other sites