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:
Dries Harnie 2013-07-02 00:11:26 +02:00
parent 3196c0a0fb
commit 6bd38b1801
10 changed files with 43 additions and 0 deletions

View file

@ -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