Even though I’ve been developing OpenGL apps for a few years now, I’ve never thought about this. I want to learn about shaders and stuff so I thought I’d give it a go. I downloaded the latest nvidia drivers, NVEmulate (since I’m working on a humble geforce 4mx) and found a small project that is supposed to be using shaders. I’m trying to compile but no luck, I have some undeclared identifiers such as:
GL_TEXTURE_CUBE_MAP_NEGATIVE_X
GL_ARRAY_BUFFER
I’ve also downloaded the glext.h and wglext.h headers from SGI. Is there a way to update the gl.h, glu.h headers since I’m working in VS .NET 2003? Or I’m stuck with the opengl95 headers? Do I need the NVidia sdk?
i don’t know about the GL_ARRAY_BUFFER, but the other problem can be solved by defining something like this:
#ifndef GL_EXT_texture_cube_map
/* EXT_texture_cube_map */
#define GL_EXT_texture_cube_map 1
#define GL_NORMAL_MAP_EXT 0x8511
#define GL_REFLECTION_MAP_EXT 0x8512
#define GL_TEXTURE_CUBE_MAP_EXT 0x8513
#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C
#endif