diff --git a/raylib/rlgl.go b/raylib/rlgl.go index eeb10e12..cc24f30f 100644 --- a/raylib/rlgl.go +++ b/raylib/rlgl.go @@ -50,6 +50,41 @@ const ( FragmentShader = 0x8B30 // GL_FRAGMENT_SHADER VertexShader = 0x8B31 // GL_VERTEX_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)