PDA

View Full Version : problems using glsl with c++



gha
01-28-2005, 07: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.

zed
01-28-2005, 12:34 PM
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