glMultiTexCoord1fARB error (headers?)

Started by
1 comment, last by max621 22 years, 2 months ago
I recently downloaded new opengl headers for some reason... perhaps 1.3 support or something. But now when I try to compile anything that requires multitexturing I get errors such as /gfx/graphics.h(312) : error C2146: syntax error : missing '';'' before identifier ''glMultiTexCoord1fARB'' My only guess is like I said before the "new" headers... or maybe I didn''t include a .h or lib file? Thanks! ||--------------------------|| Black Hole Productions http://bhp.e-chrono.net/ Resident expert on stuff max621@barrysworld.com ||--------------------------||
||--------------------------||Black Hole Productionshttp://bhp.nydus.netResident expert on stuffmax621@barrysworld.com||--------------------------||
Advertisement
so what are lines 311 + 312 in /gfx/graphics.h(312)
the extensiosn are usually declared in a file called glext.h

http://uk.geocities.com/sloppyturds/gotterdammerung.html
Extensions aren''t exported by the DLLs, so you need fn. pointers for each extension. So for glMultiTexCoord1fARB, typedef:

typedef void(__stdcall(i think) * PFNGLMULTITEXCOORD1FARBPROC)(GLenum unit, GLfloat s);

PFNGLMULTITEXCOORD1FARBPROC glMultiTexCoord1fARB = wglGetProcAddress("glMultiTexCoord1fARB");

Then you don''t actually need the headers.

I may be wrong about the __stdcall bit.

This topic is closed to new replies.

Advertisement