TINYGL: Done several optimizations to the maths code.
This commit is contained in:
parent
9be1423802
commit
4fbb2d0dc3
9 changed files with 333 additions and 254 deletions
|
@ -14,9 +14,9 @@ void glopClearDepth(GLContext *c, GLParam *p) {
|
|||
void glopClear(GLContext *c, GLParam *p) {
|
||||
int mask = p[1].i;
|
||||
int z = 0;
|
||||
int r = (int)(c->clear_color.getX() * 65535);
|
||||
int g = (int)(c->clear_color.getY() * 65535);
|
||||
int b = (int)(c->clear_color.getZ() * 65535);
|
||||
int r = (int)(c->clear_color.X * 65535);
|
||||
int g = (int)(c->clear_color.Y * 65535);
|
||||
int b = (int)(c->clear_color.Z * 65535);
|
||||
|
||||
// TODO : correct value of Z
|
||||
ZB_clear(c->zb, mask & TGL_DEPTH_BUFFER_BIT, z, mask & TGL_COLOR_BUFFER_BIT, r, g, b);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue