Merge pull request #489 from JupiterRider/missing_rlgl_constants
missing constants from RLGL added
This commit is contained in:
commit
db8e47f0e5
1 changed files with 35 additions and 0 deletions
|
@ -50,6 +50,41 @@ const (
|
||||||
FragmentShader = 0x8B30 // GL_FRAGMENT_SHADER
|
FragmentShader = 0x8B30 // GL_FRAGMENT_SHADER
|
||||||
VertexShader = 0x8B31 // GL_VERTEX_SHADER
|
VertexShader = 0x8B31 // GL_VERTEX_SHADER
|
||||||
ComputeShader = 0x91B9 // GL_COMPUTE_SHADER
|
ComputeShader = 0x91B9 // GL_COMPUTE_SHADER
|
||||||
|
|
||||||
|
// GL blending factors
|
||||||
|
Zero = 0 // GL_ZERO
|
||||||
|
One = 1 // GL_ONE
|
||||||
|
SrcColor = 0x0300 // GL_SRC_COLOR
|
||||||
|
OneMinusSrcColor = 0x0301 // GL_ONE_MINUS_SRC_COLOR
|
||||||
|
SrcAlpha = 0x0302 // GL_SRC_ALPHA
|
||||||
|
OneMinusSrcAlpha = 0x0303 // GL_ONE_MINUS_SRC_ALPHA
|
||||||
|
DstAlpha = 0x0304 // GL_DST_ALPHA
|
||||||
|
OneMinusDstAlpha = 0x0305 // GL_ONE_MINUS_DST_ALPHA
|
||||||
|
DstColor = 0x0306 // GL_DST_COLOR
|
||||||
|
OneMinusDstColor = 0x0307 // GL_ONE_MINUS_DST_COLOR
|
||||||
|
SrcAlphaSaturate = 0x0308 // GL_SRC_ALPHA_SATURATE
|
||||||
|
ConstantColor = 0x8001 // GL_CONSTANT_COLOR
|
||||||
|
OneMinusConstantColor = 0x8002 // GL_ONE_MINUS_CONSTANT_COLOR
|
||||||
|
ConstantAlpha = 0x8003 // GL_CONSTANT_ALPHA
|
||||||
|
OneMinusConstantAlpha = 0x8004 // GL_ONE_MINUS_CONSTANT_ALPHA
|
||||||
|
|
||||||
|
// GL blending functions/equations
|
||||||
|
FuncAdd = 0x8006 // GL_FUNC_ADD
|
||||||
|
Min = 0x8007 // GL_MIN
|
||||||
|
Max = 0x8008 // GL_MAX
|
||||||
|
FuncSubtract = 0x800A // GL_FUNC_SUBTRACT
|
||||||
|
FuncReverseSubtract = 0x800B // GL_FUNC_REVERSE_SUBTRACT
|
||||||
|
BlendEquation = 0x8009 // GL_BLEND_EQUATION
|
||||||
|
BlendEquationRgb = BlendEquation // GL_BLEND_EQUATION_RGB (Same as BLEND_EQUATION)
|
||||||
|
BlendEquationAlpha = 0x883D // GL_BLEND_EQUATION_ALPHA
|
||||||
|
BlendDstRgb = 0x80C8 // GL_BLEND_DST_RGB
|
||||||
|
BlendSrcRgb = 0x80C9 // GL_BLEND_SRC_RGB
|
||||||
|
BlendDstAlpha = 0x80CA // GL_BLEND_DST_ALPHA
|
||||||
|
BlendSrcAlpha = 0x80CB // GL_BLEND_SRC_ALPHA
|
||||||
|
BlendColor = 0x8005 // GL_BLEND_COLOR
|
||||||
|
|
||||||
|
ReadFramebuffer = 0x8CA8 // GL_READ_FRAMEBUFFER
|
||||||
|
DrawFramebuffer = 0x8CA9 // GL_DRAW_FRAMEBUFFER
|
||||||
)
|
)
|
||||||
|
|
||||||
// VertexBuffer - Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
// VertexBuffer - Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue