Changes

Jump to navigation Jump to search
1,614 bytes added ,  05:34, 24 February 2013
no edit summary
Line 88: Line 88:  
| u32
 
| u32
 
| Color related?
 
| Color related?
 +
|-
 +
| 0x00010107
 +
|
 +
| See command set CmdID 0x00010107.
 +
|-
 +
| 0x00020107
 +
|
 +
| See command set CmdID 0x00010107.
 +
|-
 +
| 0x00030107
 +
|
 +
| See command set CmdID 0x00030107.
 
|-
 
|-
 
| 0x000F0116
 
| 0x000F0116
Line 112: Line 124:  
|  
 
|  
 
| See command set 0x826F0200.
 
| See command set 0x826F0200.
 +
|-
 +
| 0x00080126
 +
|
 +
| See command set CmdID 0x00030107.
 
|-
 
|-
 
| 0x000F0227
 
| 0x000F0227
Line 258: Line 274:  
|  
 
|  
 
| Unknown, this command is used multiple times for specifying each parameter-buffer entry.
 
| Unknown, this command is used multiple times for specifying each parameter-buffer entry.
 +
|}
 +
 +
===== CmdID 0x00030107 =====
 +
{| class="wikitable" border="1"
 +
!  Command Index
 +
!  CommandID
 +
!  Parameter
 +
!  Description
 +
|-
 +
| 0
 +
| 0x00030107
 +
| glAlphaFunc() parameters.
 +
|
 +
|-
 +
| 1
 +
| 0x00080126
 +
| type<<24
 +
|
 +
|}
 +
 +
This command set is used for disabling alpha testing, and for glAlphaFunc(). The GL AlphaFunction used here is normally GL_ALWAYS.
 +
 +
===== CmdID 0x00010107 =====
 +
{| class="wikitable" border="1"
 +
!  Command Index
 +
!  CommandID
 +
!  Parameter
 +
!  Description
 +
|-
 +
| 0
 +
| 0x00010107
 +
| Same format as CmdID 0x00030107.
 +
|
 +
|-
 +
| 1
 +
| 0x00080126
 +
| type<<24
 +
|
 +
|-
 +
| 0
 +
| 0x00020107
 +
| Same value as CmdID 0x00030107.
 +
|
 +
|}
 +
 +
This is used for glAlphaFunc().
 +
 +
=== Parameter format for CmdIDs 0x00030107, 0x00020107, and 0x00010107 ===
 +
{| class="wikitable" border="1"
 +
!  Bit
 +
!  Description
 +
|-
 +
| 0
 +
| 0 = disable GL_ALPHA_TEST, 1 = enable GL_ALPHA_TEST.
 +
|-
 +
| 3-1
 +
| Unused?
 +
|-
 +
| 7-4
 +
| Alpha function
 +
|-
 +
| 11-8
 +
| ?
 +
|-
 +
| 12
 +
| ?
 +
|-
 +
| 31-13
 +
| Unused
 +
|}
 +
 +
==== Alpha function values ====
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  GL AlphaFunction
 +
|-
 +
| 0
 +
| GL_NEVER
 +
|-
 +
| 1
 +
| GL_ALWAYS
 +
|-
 +
| 2
 +
| GL_EQUAL
 +
|-
 +
| 3
 +
| GL_NOTEQUAL
 +
|-
 +
| 4
 +
| GL_LESS
 +
|-
 +
| 5
 +
| GL_LEQUAL
 +
|-
 +
| 6
 +
| GL_GREATER
 +
|-
 +
| 7
 +
| GL_GEQUAL
 +
|}
 +
 +
=== Alpha types for CmdID 0x00080126 ===
 +
{| class="wikitable" border="1"
 +
!  Type
 +
!  GL AlphaFunction
 +
|-
 +
| 0
 +
| GL_NEVER
 +
|-
 +
| 1
 +
| GL_ALWAYS
 +
|-
 +
| 2
 +
| GL_GREATER/GL_GEQUAL
 +
|-
 +
| 3
 +
| The remaining GL alpha functions.
 
|}
 
|}
   Line 545: Line 678:  
|}
 
|}
   −
Each paramater buffer for CmdID 0x803F0232 is an entry loaded from an array.
+
Each parameter buffer for CmdID 0x803F0232 is an entry loaded from an array.
    
=== Entries for CmdID 0xXXXF02C1 ===
 
=== Entries for CmdID 0xXXXF02C1 ===

Navigation menu