LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: CuppoJava on May 13, 2009, 20:42:23

Title: Where are the glTexCoord Integer Commands?
Post by: CuppoJava on May 13, 2009, 20:42:23
Hi,
I can't find the glTexCoord2i, glTexCoord3i commands, used for accessing texture pixel coordinates directly.
I'm wondering if there's a specific reason why these commands weren't included in LWJGL.
  -Patrick
Title: Re: Where are the glTexCoord Integer Commands?
Post by: princec on May 13, 2009, 20:54:39
Looks like it was omitted originally because it was an arcane use (we omitted quite a few GL command variants, eg. anything that took doubles), and lately omitted accidentally, as they should be present now.

Cas :)
Title: Re: Where are the glTexCoord Integer Commands?
Post by: CuppoJava on May 13, 2009, 21:24:18
Thanks for the reply.
I investigated further into what glTexCoord2i actually does, and it seems it was omitted for good reason. Unlike what I guessed, glTexCoord2i doesn't actually specific pixel coordinates directly. It still accepts only a value from 0 to 1. Which is obviously useless.
  -Patrick
Title: Re: Where are the glTexCoord Integer Commands?
Post by: princec on May 13, 2009, 23:48:47
Well, generally useless, yes - but you could have some funky stuff going on with the texture matrix, repeating textures, shaders, etc.

Cas :)