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

Texture loading problem

Started by daedalux Jun 7, 2004 at 11:31 PM 2 replies 500+ views
Original Post
daedalux
daedalux
I''ve been trying to use the texture loading routine from NeHe''s texturing tutorial (#8) to load my 64x64 bmp, and it quits on this line: if (TextureImage[0]=LoadBMP(filename)) Giving me the error: 53 C:\dev\exp_conq\main.cpp `LoadBMP'' undeclared (first use this function) I''m using Dev-C++, and I have included these headers: #include <windows.h> #include <stdio.h> #include <gl/gl.h> #include <gl/glaux.h> #include <gl/glext.h> Any ideas? P.S. Is anyone else totally pissed that the Flames didn''t win the Stanley Cup?
daedalux
daedalux
Wow I feel dumb. Turns out you have to write that function YOURSELF.
weyland
weyland
search the web for some sourcecode, loading bitmaps and targas is easy to figure out

having to write your own functions instead of glut.h or glaux.h will only help you in the end


[edited by - weyland on June 8, 2004 10:57:06 PM]

Topic Locked

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

Sign in to reply to this topic.