OpenGL Texture Mapping Problems
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,
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 18.104.22.168 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: *** [savage-savage.o] Error 1
gmake: Target `all' not remade because of errors.
gmake: *** [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