and my errors are :
error C2065: ‘CreateShader’ : undeclared identifier
error C2065: ‘VERTEX_SHADER’ : undeclared identifier
I have the latest drivers for my ATI card (it works perfectly with render monkey), i don’t understand because i have read this in the opengl 2.0 specs
can you help me ?
Try glCreateShader and GL_VERTEX_SHADER. And of course, make sure you have setup all function pointers and so on.
Personally, I never understood the point of excluding the GL_ and gl from all names and enums in the spec.
Anything above OpenGL 1.1 should be accessed with the extension loading mechanism. On Windows you don’t have a choice, and on Linux it is still better not to statically link to the functions.
Hi,
Another possibility much better (I think) than the glGetProcAddress(…) and the glew library, is to use the static library of ATI (which work also for other vendor hardware, unless you use ATI extensions).
You can dowload them on the ATI web side (just downloading a “sample project”)
you have just to link
extsetup.lib
to your project
and write #include “extsetup.h”
in your source
It is better than glGetProcAddress because it’s very painful to write this “linkage” section for each extensions.
In my opinion is also better than the glew because is released by an official OpenGL vendor and it is straightforward to use (of course you can think different).
At the Setup phase, in your source, you have just to write