Skip to main content
GameDev.net gamedev.net
🔒 Locked

Multitexture question

Started by Slug Mar 15, 2005 at 1:21 PM 0 replies 300+ views
Original Post
Slug
Slug
How can i do to render two texture on the same quad?
Mercury
Mercury
You have to use multitexturing through OpenGL's Extensions:
OpenGL Multitexturing

Keep in mind you've gotta "load" those functions through WGL, though. For example:

typedef void (APIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
PFNGLMULTITEXCOORD2FVARBPROC glMultiTexCoord2fvARB;
glMultiTexCoord2fvARB = (PFNGLMULTITEXCOORD2FVARBPROC) wglGetProcAddress("glMultiTexCoord2fvARB");

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.