Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 02-28-2005, 01:33 PM   #1
Beta Member
Join Date: Jan 2005
Posts: 2
Default 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,
GLint 0,
GLint GL_RGBA16,
GLsizei 512,
GLsizei 512,
GLint 0,
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 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

02bunced is offline   Reply With Quote
Old 03-02-2005, 01:25 AM   #2
Solid State Member
rampagegfx's Avatar
Join Date: Feb 2005
Posts: 9
Send a message via AIM to rampagegfx
Default Re: OpenGL Texture Mapping Problems

I know a game forum that uses OpenGL maybe you can find some answers there... http://eternal-lands.com and just goto the forum.
rampagegfx is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 12:33 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0