TINYGL: added tglAlphaTest stubs

This commit is contained in:
Pawel Kolodziejski 2014-07-04 08:43:19 +02:00
parent 2bf63a5f52
commit b4962f645e
11 changed files with 61 additions and 7 deletions

View file

@ -126,8 +126,13 @@ void glInit(void *zbuffer1) {
c->render_mode = TGL_RENDER;
c->select_buffer = NULL;
c->name_stack_size = 0;
// blending
c->enableBlend = false;
// alpha test
c->_alphaTestEnabled = false;
// matrix
c->matrix_mode = 0;
@ -146,8 +151,11 @@ void glInit(void *zbuffer1) {
tglLoadIdentity();
tglMatrixMode(TGL_MODELVIEW);
tglLoadIdentity();
tglBlendFunc(TGL_SRC_ALPHA, TGL_ONE_MINUS_SRC_ALPHA);
tglAlphaFunc(TGL_ALWAYS, 0.f);
c->matrix_model_projection_updated = 1;
// opengl 1.1 arrays