TINYGL: implemented tglDepthFunc

This commit is contained in:
Pawel Kolodziejski 2014-07-04 23:14:44 +02:00
parent 7370dcd635
commit 1b8dd28bc7
12 changed files with 84 additions and 21 deletions

View file

@ -195,6 +195,14 @@ void tglAlphaFunc(TGLenum func, float ref) {
TinyGL::gl_add_op(p);
}
void tglDepthFunc(TGLenum func) {
TinyGL::GLParam p[2];
p[0].op = TinyGL::OP_DepthFunc;
p[1].i = func;
TinyGL::gl_add_op(p);
}
void tglPolygonMode(int face, int mode) {
TinyGL::GLParam p[3];