MCPcopy Create free account
hub / github.com/assaultcube/AC / quad

Function quad

source/src/rendergl.cpp:249–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void 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
262void quad(GLuint tex, const vec &c1, const vec &c2, float tx, float ty, float tsx, float tsy)
263{

Callers 7

renderaboveheadiconFunction · 0.85
drawiconFunction · 0.85
drawradar_showmapFunction · 0.85
drawradar_vicinityFunction · 0.85
drawteamiconsFunction · 0.85
loadingscreenFunction · 0.85
loopvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected