Archived

This topic is now archived and is closed to further replies.

max621

glMultiTexCoord1fARB error (headers?)

Recommended Posts

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 [url]http://bhp.e-chrono.net/ Resident expert on stuff max621@barrysworld.com ||--------------------------||

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites