Table fields from glTexture()?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
nate
Wyrmic
Posts: 261
Joined: Fri Jan 18, 2013 8:35 am

Table fields from glTexture()?

#1 Post by nate »

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.
Proud father of Fx4fx and Chronometer add-ons; proud mother of Fated add-on

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Table fields from glTexture()?

#2 Post by darkgod »

1: texture itself
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 ;)

nate
Wyrmic
Posts: 261
Joined: Fri Jan 18, 2013 8:35 am

Re: Table fields from glTexture()?

#3 Post by nate »

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.
Proud father of Fx4fx and Chronometer add-ons; proud mother of Fated add-on

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Table fields from glTexture()?

#4 Post by darkgod »

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 ;)

nate
Wyrmic
Posts: 261
Joined: Fri Jan 18, 2013 8:35 am

Re: Table fields from glTexture()?

#5 Post by nate »

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
Ahh, thanks!
Proud father of Fx4fx and Chronometer add-ons; proud mother of Fated add-on

Post Reply