TINYGL: Implemented alpha blending and color transformation in sprite blitting for Grim TinyGL renderer.

This commit is contained in:
Stefano Musumeci 2014-06-20 14:13:52 +02:00
parent 63fd685589
commit 109767e513
10 changed files with 197 additions and 273 deletions

View file

@ -126,8 +126,8 @@ void glInit(void *zbuffer1) {
c->render_mode = TGL_RENDER;
c->select_buffer = NULL;
c->name_stack_size = 0;
c->enable_blend = false;
c->enableBlend = false;
// matrix
c->matrix_mode = 0;
@ -146,6 +146,7 @@ void glInit(void *zbuffer1) {
tglLoadIdentity();
tglMatrixMode(TGL_MODELVIEW);
tglLoadIdentity();
tglBlendFunc(TGL_SRC_ALPHA, TGL_ONE_MINUS_SRC_ALPHA);
c->matrix_model_projection_updated = 1;