Changes

Jump to navigation Jump to search
803 bytes added ,  20:04, 20 February 2013
no edit summary
Line 293: Line 293:  
| The low u16 is the texture image width, and the high u16 is the texture image height.
 
| The low u16 is the texture image width, and the high u16 is the texture image height.
 
|-
 
|-
| 2-3
+
| 2
 +
| Texture parameters, initialized by glTexParameter().
 +
|-
 +
| 3
 
| ?
 
| ?
 
|-
 
|-
Line 300: Line 303:  
|-
 
|-
 
| 5-9
 
| 5-9
 +
| ?
 +
|}
 +
 +
==== Texture parameters ====
 +
{| class="wikitable" border="1"
 +
!  Bit
 +
!  Description
 +
!  GL parameter name
 +
|-
 +
| 0
 +
| ?
 +
| ?
 +
|-
 +
| 1
 +
| 0 = GL_NEAREST, 1 = GL_LINEAR.
 +
| GL_TEXTURE_MAG_FILTER
 +
|-
 +
| 2
 +
| 1 = GL_LINEAR, GL_LINEAR_MIPMAP_NEAREST, or GL_LINEAR_MIPMAP_LINEAR. Value zero otherwise.
 +
| GL_TEXTURE_MIN_FILTER
 +
|-
 +
| 3
 +
| Unused?
 +
| ?
 +
|-
 +
| 7-4
 +
| 2 = texture color type 0xC, 0 otherwise.(Enable/disable texture data compression?)
 +
|
 +
|-
 +
| 11-8
 +
| 0 = GL_CLAMP_TO_EDGE, 1=unknown, 2=GL_REPEAT, 3=unknown.
 +
| GL_TEXTURE_WRAP_S
 +
|-
 +
| 15-12
 +
| Same values as GL_TEXTURE_WRAP_S.
 +
| GL_TEXTURE_WRAP_T
 +
|-
 +
| 24
 +
| 1 = GL_NEAREST_MIPMAP_LINEAR, or GL_LINEAR_MIPMAP_LINEAR. Value zero otherwise.
 +
| GL_TEXTURE_MIN_FILTER
 +
|-
 +
| 31-25
 +
| Unused?
 
| ?
 
| ?
 
|}
 
|}
Line 371: Line 417:  
|-
 
|-
 
| 0xC
 
| 0xC
| ?
+
| Compression related?
 
| ?
 
| ?
 
|  
 
|  

Navigation menu