.TGA loading

Started by
3 comments, last by lazo 20 years, 6 months ago
Hi! How can I load .TGA file whose width and height aren''t the power of 2, for example 800x600?
Advertisement
yes, use gluBuild2DMipmaps(); instead of glTexImage2D();
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
Looks like I''ll have to call attention on NV_texture_rectangle (ugly) and the upcoming ARB_non_power_of_two (way too cool).

Previously "Krohm"

This topic is closed to new replies.

Advertisement