OpenGL Texture Mapping Problems

02bunced

Beta member
Messages
2
Hi,

I am trying to learn texture mapping on OpenGL. I am using a Linux system of SUSE 9.2, with OpenGL/SDL. My IDE is KDevelop. When I put in the following code:

void glTexImage2D(GLenum GL_TEXTURE_2D,
GLint 0,
GLint GL_RGBA16,
GLsizei 512,
GLsizei 512,
GLint 0,
GLenum GL_RGBA,
GLenum GL_BITMAP,
const GLvoid *pixels);

I get the error:

/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
/home/david/savage/src/savage.cpp:104: error: syntax error before numeric constant
gmake[2]: *** [savage-savage.o] Error 1
gmake[2]: Target `all' not remade because of errors.
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** Exited with status: 2 ***

where line 104 is the first line of the posted code. Please help, as I am going into a state of depression over texture mapping due to the lack of simple, basic and easy-to-follow tutorials.

Thanks for your time
 
Back
Top Bottom