Anybody know what the various fields refer to? I'd rather not do a bunch of science.
Table fields from glTexture()?
Moderator: Moderator
Table fields from glTexture()?
glTexture seems to return a nice table, with a bunch of fields containing diverse and useful information, that are apparently referenced array style 
Anybody know what the various fields refer to? I'd rather not do a bunch of science.
Anybody know what the various fields refer to? I'd rather not do a bunch of science.
Re: Table fields from glTexture()?
1: texture itself
2: texture width
3: texture height
4: width ratio
5: height ratio
6: image width
7: image height
2: texture width
3: texture height
4: width ratio
5: height ratio
6: image width
7: image height
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: Table fields from glTexture()?
I appreciate the prompt response but have to confess that doesn't clarify much to me
Not sure how texture width is different from image width, or what the ratios are ratios of (height to width and vice versa?) I can always do some experimentation though.
Re: Table fields from glTexture()?
Textures size is a power of 2, while image size can be anything and the ratio is needed to correctly map texture on quad
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
Re: Table fields from glTexture()?
Ahh, thanks!darkgod wrote:Textures size is a power of 2, while image size can be anything and the ratio is needed to correctly map texture on quad