TINYGL: Support ColorMask
Note, this is just basic support, it is either all or nothing. Disabling select channels is not possible.
This commit is contained in:
parent
3196c0a0fb
commit
6bd38b1801
10 changed files with 43 additions and 0 deletions
|
@ -145,4 +145,8 @@ void glopPolygonOffset(GLContext *c, GLParam *p) {
|
|||
c->offset_units = p[2].f;
|
||||
}
|
||||
|
||||
void glopColorMask(GLContext *c, TinyGL::GLParam *p) {
|
||||
c->color_mask = p[1].i;
|
||||
}
|
||||
|
||||
} // end of namespace TinyGL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue