View Full Version : problems using glsl with c++

01-28-2005, 06:31 AM
hi, my graphic board is a geforce fx 5200 and I have the latest nvdia driver. I can run some shaders and I develop them with opengl shader designer.

I want put this shaders in my c++ aplication but when I use:

fragment = glCreateShaderObjectARB(GL_FRAGMENT_SHADER_ARB); or any other glsl function like glShaderSourceARB or glAttachObjectARB an error show that functions undeclared (like this: shader.cpp:11:error glCreateShaderObjectARB undeclared)

Im using the glext.h that comes with nvidia driver.

01-28-2005, 11:34 AM
u have to setup the function entry points like u have to do with most extensions, including glext.h is not enuf.
use a extension loader library to do the work for you