quote:Original post by KalvinB
DirectDraw... DirectDraw ..DirectDraw ... D3D ... DX7..
quote:Original post by frmzero2here
note:I am working on Linux for this project.
RTFQ.
Note to frmzero2hero: sizing up the texture to the nearest power of two when you load it is an easy solution, as someone suggested. Don''t stretch the image, just fill the additional space with black or white. Adjust your texture coordinates so that they match the size of the valid data in the surface, and you''re done.
I actually implemented that straight into my image loader. It always sizes images to powers of 2, since I''m always using them as textures anyway. Sure, I''m throwing out memory by the bucketload, but these are research projects anyway, so it''s not like I need to run them at 150FPS on a 20 Mhz machine.