Image from file
Look at NeHe's tutorials (search NeHe on google), I think you want tutorial 7 on texture mapping.
No, I don't believe that it is. I want to display the image as the background for the opening screen.
load the image as a texture, then draw a quad that covers the whole screen with that texture.
You could use glDrawPixels to write the image directly to the frame buffer. You still need to load the image from the file yourself to get the pixel data. Using a textured quad is the way to go however; that way you only have to transfer the image data to the video card instead of every time you want to draw it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement