| 247 | } |
| 248 | |
| 249 | void quad(GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy) |
| 250 | { |
| 251 | if(!tsy) tsy = tsx; |
| 252 | glBindTexture(GL_TEXTURE_2D, tex); |
| 253 | glBegin(GL_TRIANGLE_STRIP); |
| 254 | glTexCoord2f(tx, ty); glVertex2f(x, y); |
| 255 | glTexCoord2f(tx+tsx, ty); glVertex2f(x+s, y); |
| 256 | glTexCoord2f(tx, ty+tsy); glVertex2f(x, y+s); |
| 257 | glTexCoord2f(tx+tsx, ty+tsy); glVertex2f(x+s, y+s); |
| 258 | glEnd(); |
| 259 | xtraverts += 4; |
| 260 | } |
| 261 | |
| 262 | void quad(GLuint tex, const vec &c1, const vec &c2, float tx, float ty, float tsx, float tsy) |
| 263 | { |
no outgoing calls
no test coverage detected