Changes

918 bytes added ,  23:21, 13 September 2014
Line 1,047: Line 1,047:     
=== Parameter value format for CmdID 0x000F0101 ===
 
=== Parameter value format for CmdID 0x000F0101 ===
 +
This command controls alphablending. To disable alphablending, the value is set to 0x01010000.
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Bit
 
!  Bit
Line 1,052: Line 1,053:  
|-
 
|-
 
| 7-0
 
| 7-0
| ?
+
| Color blend equation
 
|-
 
|-
 
| 15-8
 
| 15-8
| ?
+
| Alpha blend equation
 
|-
 
|-
 
| 19-16
 
| 19-16
| ?
+
| Color source factor
 
|-
 
|-
 
| 23-20
 
| 23-20
| ?
+
| Color destination factor
 
|-
 
|-
 
| 27-24
 
| 27-24
| ?
+
| Alpha source factor
 
|-
 
|-
 
| 31-28
 
| 31-28
| ?
+
| Alpha destination factor
 +
|}
 +
 
 +
Blend equation values:
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0
 +
| GL_FUNC_ADD
 +
|-
 +
| 1
 +
| GL_FUNC_SUBTRACT
 +
|-
 +
| 2
 +
| GL_FUNC_REVERSE_SUBTRACT
 +
|-
 +
| 3
 +
| GL_MIN
 +
|-
 +
| 4
 +
| GL_MAX
 +
|}
 +
 
 +
Source/destination factor values:
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0
 +
| GL_ZERO
 +
|-
 +
| 1
 +
| GL_ONE
 +
|-
 +
| 2
 +
| GL_SRC_COLOR
 +
|-
 +
| 3
 +
| GL_ONE_MINUS_SRC_COLOR
 +
|-
 +
| 4
 +
| GL_DST_COLOR
 +
|-
 +
| 5
 +
| GL_ONE_MINUS_DST_COLOR
 +
|-
 +
| 6
 +
| GL_SRC_ALPHA
 +
|-
 +
| 7
 +
| GL_ONE_MINUS_SRC_ALPHA
 +
|-
 +
| 8
 +
| GL_DST_ALPHA
 +
|-
 +
| 9
 +
| GL_ONE_MINUS_DST_ALPHA
 +
|-
 +
| 10
 +
| GL_CONSTANT_COLOR
 +
|-
 +
| 11
 +
| GL_ONE_MINUS_CONSTANT_COLOR
 +
|-
 +
| 12
 +
| GL_CONSTANT_ALPHA
 +
|-
 +
| 13
 +
| GL_ONE_MINUS_CONSTANT_ALPHA
 +
|-
 +
| 14
 +
| GL_SRC_ALPHA_SATURATE
 
|}
 
|}
  
136

edits