tileHeight=th;
glAlphaFunc(GL_NOTEQUAL, 0);
- glEnable(GL_ALPHA_TEST);
- tex = new Texture(filename, key, g);
+ glEnable(GL_ALPHA_TEST);
+ tex = new Texture(filename, key, g);
texW = tex->getWidth();
texH = tex->getHeight();
void Sprite::blit(int x, int y, float scalex, float scaley, int dx, int dy, colour col)
{
- z_order-=0.000001;
+ z_order-=0.0001;
glEnter2DMode();
// glColor4ub((colour & 0x00FF0000) >> 16, (colour & 0x0000FF00) >> 8,
// (colour & 0x000000FF), (colour & 0xFF000000) >> 24);