Archived

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

glMultiTexCoord1fARB error (headers?)

This topic is 5792 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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