Skip to content

Commit

Permalink
Adding glColorMaski support.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementlandrin authored and clementlandrin committed Oct 24, 2023
1 parent bbae569 commit e290d34
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/mesa/mesa/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class GL {
public static function colorMask( r : Bool, g : Bool, b : Bool, a : Bool ) {
}

public static function colorMaski( i : Int, r : Bool, g : Bool, b : Bool, a : Bool ) {
}

public static function stencilMaskSeparate( face : Int, mask : Int ){
}

Expand Down
1 change: 1 addition & 0 deletions libs/sdl/GLImports.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ GL_IMPORT(glGetUniformBlockIndex, GETUNIFORMBLOCKINDEX);
GL_IMPORT(glUniformBlockBinding, UNIFORMBLOCKBINDING);

GL_IMPORT(glMultiDrawElementsIndirect, MULTIDRAWELEMENTSINDIRECT);
GL_IMPORT(glColorMaski, COLORMASKI);

#if !defined(HL_MESA)
GL_IMPORT(glGetQueryObjectui64v, GETQUERYOBJECTUI64V);
Expand Down
5 changes: 5 additions & 0 deletions libs/sdl/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ HL_PRIM void HL_NAME(gl_color_mask)( bool r, bool g, bool b, bool a ) {
glColorMask(r, g, b, a);
}

HL_PRIM void HL_NAME(gl_color_maski)( int i, bool r, bool g, bool b, bool a ) {
glColorMaski(i, r, g, b, a);
}

HL_PRIM void HL_NAME(gl_stencil_mask_separate)(int face, int mask) {
glStencilMaskSeparate(face, mask);
}
Expand Down Expand Up @@ -664,6 +668,7 @@ DEFINE_PRIM(_VOID,gl_blend_equation_separate,_I32 _I32);
DEFINE_PRIM(_VOID,gl_depth_mask,_BOOL);
DEFINE_PRIM(_VOID,gl_depth_func,_I32);
DEFINE_PRIM(_VOID,gl_color_mask,_BOOL _BOOL _BOOL _BOOL);
DEFINE_PRIM(_VOID,gl_color_maski,_I32 _BOOL _BOOL _BOOL _BOOL);
DEFINE_PRIM(_VOID,gl_stencil_mask_separate,_I32 _I32);
DEFINE_PRIM(_VOID,gl_stencil_func_separate,_I32 _I32 _I32 _I32);
DEFINE_PRIM(_VOID,gl_stencil_op_separate,_I32 _I32 _I32 _I32);
Expand Down
3 changes: 3 additions & 0 deletions libs/sdl/sdl/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class GL {
public static function colorMask( r : Bool, g : Bool, b : Bool, a : Bool ) {
}

public static function colorMaski( i : Int, r : Bool, g : Bool, b : Bool, a : Bool ) {
}

public static function stencilMaskSeparate( face : Int, mask : Int ){
}

Expand Down

0 comments on commit e290d34

Please sign in to comment.