Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing constants from RLGL added #489

Merged
merged 1 commit into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions raylib/rlgl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down