Big Background Picture
How do you draw big background (800x600px)? glDrawPixels is slow (according to old posts). And max texture size is 256x256. I found something about creating one tmptexture, then using glTexSubImage2D to copy portion of image to texture and then render a textured qued. This the way to go?
edit: Damn, got it totally wrong this time. I am mixing images and textures and everything
[edited by - stefu on August 14, 2003 1:59:07 PM]
Try using several small textured quads instead of just one big?
This is the way Resident Evil was made. =)
"Game Maker For Life, probably never professional thou." =)
This is the way Resident Evil was made. =)
"Game Maker For Life, probably never professional thou." =)
This way?
[edited by - stefu on August 14, 2003 2:24:47 PM]
Image image; // 800x600 image read from filevector<Image> subimages;image.sub(256,256,subimages); // Create 256x256 sized sub imagesGLuint texture; // existing 256x256 sized textureglBindTexture(texture);for each img in subimages: glTexSubImage2D(texture, 0, 0, 0, 256, 256, img.buffer()); render quad with correct coordinates
[edited by - stefu on August 14, 2003 2:24:47 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement