.TGA loading
Hi!
How can I load .TGA file whose width and height aren''t the power of 2, for example 800x600?
If you just want to draw a full-screen image, you don''t need to make it a texture. Just load the TGA data with any tga loader (I use FreeImage), and call DrawPixels()
you can always use gluScaleImage() to scale it to the correct power of 2 size.. using mipmaps will chew up a lot of extra memory if you don''t require them.
Jumpman - Under Construction
Jumpman - Under Construction
Looks like I''ll have to call attention on NV_texture_rectangle (ugly) and the upcoming ARB_non_power_of_two (way too cool).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement