PDA

View Full Version : Multitexture Problem!



Malfatti
05-04-2006, 03:36 PM
Here I am! Trying to compile an example code that come with the "OpenGL Game Programming Book"!

My problem is a program that uses multitexturing, but it dontĀ“t work.

This error happenĀ“s when I try to compile:

c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers


c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers

c:\Documents and Settings\multipassex\main.cpp(52): error C2501: 'PFNGLCLIENTACTIVETEXTUREARBPROC' : missing storage-class or type specifiers


The compiler not recognize the pointer to extended funcions of opengl.

I am including in my project the headers

#include <gl/gl.h> // standard OpenGL include
#include <gl/glu.h> // OpenGL utilties
#include "glext.h"
// OpenGL extension

and the libs:

opengl32.lib and glu32.lib

Any idea that what is my problem?

Thank you!!!

def
05-05-2006, 08:28 PM
You probably have to get a more recent version of glext.h. One which has multitexturing extensions included.

http://oss.sgi.com/projects/ogl-sample/registry/