Schnulla
06-30-2010, 09:52 AM
Hi,
since I'm switching to OpenGL 3.2 (core profile) I
replaced all gl.h and glext.h includes with gl3.h.
Now the compiler complains about missing OpenGL 1.X
functions like glGetString() or glGenTextures().
I checked the gl3.h header and noticed I'll have to
bind these functions like extensions? Why is that?
In gl.h it was ready to use in this form:
WINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
Please note I have no problems with binding extensions,
I'm just interested in why such "oldschool" functions
suddendly are not ready to use in a new header.
And I'm not sure which role GL3_PROTOTYPES plays in
this game but I guess it should NOT be defined for
Windows platform.
Hope someone can enlighten me :)
Thank you!
P.S. I know about GLEW, that is not the point here.
since I'm switching to OpenGL 3.2 (core profile) I
replaced all gl.h and glext.h includes with gl3.h.
Now the compiler complains about missing OpenGL 1.X
functions like glGetString() or glGenTextures().
I checked the gl3.h header and noticed I'll have to
bind these functions like extensions? Why is that?
In gl.h it was ready to use in this form:
WINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
Please note I have no problems with binding extensions,
I'm just interested in why such "oldschool" functions
suddendly are not ready to use in a new header.
And I'm not sure which role GL3_PROTOTYPES plays in
this game but I guess it should NOT be defined for
Windows platform.
Hope someone can enlighten me :)
Thank you!
P.S. I know about GLEW, that is not the point here.