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
|
@ -62,6 +62,7 @@ void glopEnableDisable(GLContext *c, GLParam *p) {
|
|||
c->depth_test = v;
|
||||
break;
|
||||
case TGL_BLEND:
|
||||
c->enableBlend = v;
|
||||
c->fb->enableBlending(v);
|
||||
break;
|
||||
case TGL_POLYGON_OFFSET_FILL:
|
||||
|
@ -107,7 +108,7 @@ void glopEnableDisable(GLContext *c, GLParam *p) {
|
|||
void glopBlendFunc(GLContext *c, GLParam *p) {
|
||||
TGLenum sfactor = p[1].i;
|
||||
TGLenum dfactor = p[2].i;
|
||||
c->fb->setBlendingFactors(sfactor,dfactor);
|
||||
c->fb->setBlendingFactors(sfactor, dfactor);
|
||||
}
|
||||
|
||||
void glopShadeModel(GLContext *c, GLParam *p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue