Non power-of-2 textures

Hi,
Ok, maybe it’s not in the 1.5 spec, but then why the glspec15.pdf -> ARB extensions -> I29 is ‘Non-Power-Of-Two Textures’?
Maybe they will become available in 1.6?

Originally posted by Tzupy:
Hi,
Ok, maybe it’s not in the 1.5 spec, but then why the glspec15.pdf -> ARB extensions -> I29 is ‘Non-Power-Of-Two Textures’?
Maybe they will become available in 1.6?

Look at I.20 for example
Promoted to core feature in 1.4

and look at the others as well.

NPTT doesn’t say anything like that, but they mention it cause the spec exists -> you are reading the “ARB extensions” section, not core features.

how about just querying for _texture_rectangle, and just use all tokens from… say GL_NV_texture_rectangle, or GL_EXT_texture_rectangle (and rewrite them to GL_ALL_texture_rectangle tokens or something )

then you can use it as one extension, supported on all cards having that feature supported… no special casing for NV and EXT…

it’s a hack. but works for all pre-ARB_npo2 capable cards…

glMatrixMode(GL_TEXTURE);
glScalef(imageWidth/texWidth, imageHeight/texHeight, 1.0f);

No messing with texture coordinates at source data level.