*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@913 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-04 01:54:18 +00:00
parent c508ab9d58
commit 5c9c9fe6c7
6 changed files with 23 additions and 8 deletions
+6 -5
View File
@@ -77,14 +77,15 @@ void box(block &b, float z1, float z2, float z3, float z4)
xtraverts += 4;
}
void quad(GLuint tex, float x, float y, float s, float tx, float ty, float ts)
void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
{
if(!tsy) tsy = tsx;
glBindTexture(GL_TEXTURE_2D, tex);
glBegin(GL_QUADS);
glTexCoord2f(tx, ty); glVertex2f(x, y);
glTexCoord2f(tx+ts, ty); glVertex2f(x+s, y);
glTexCoord2f(tx+ts, ty+ts); glVertex2f(x+s, y+s);
glTexCoord2f(tx, ty+ts); glVertex2f(x, y+s);
glTexCoord2f(tx, ty); glVertex2f(x, y);
glTexCoord2f(tx+tsx, ty); glVertex2f(x+s, y);
glTexCoord2f(tx+tsx, ty+tsy); glVertex2f(x+s, y+s);
glTexCoord2f(tx, ty+tsy); glVertex2f(x, y+s);
glEnd();
xtraverts += 4;
}