TINYGL: Implemented alpha blending and color transformation in sprite blitting for Grim TinyGL renderer.
This commit is contained in:
parent
63fd685589
commit
109767e513
10 changed files with 197 additions and 273 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue