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

help!!! i stuck at texture!!!!

Started by Master_newbie Aug 30, 2001 at 11:20 AM 1 replies 300+ views
Original Post
Master_newbie
Master_newbie
hmmm like all the codes are working pretty well until i run the program. It''s give error that indicate that i data bmp could fine!!!! so my question is where do i place the *.*bmp data?? when i compile the code!!!! plz tell me... i very stuck!!!!
Kneelz
Kneelz
As BMP is a MIPS R3000 native image format, it has to be converted from big-endian to little-endian.
Just load it into a BYTE* buffer and flip it...

Then you use wglGetProcAddress to load the "WGL_load_r3000_bmp"
extension. That should be rather easy. Then you pass the FILE* structure as a parameter.

OpenGL sets it up automatically. To display it correctly, you use glTexCoord4i (you pass the vertex data (x, y, z) and the alpha value to it) (They have to be converted to int!).

Then just call glFlush() and the object should appear. You have to call SwapBuffers twice (remember, it''s DOUBLE buffering).

If it doesn''t work, ask MyopicRhino for further assistance.

Kneelz | zleenK

Topic Locked

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

Sign in to reply to this topic.