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

Function draw_envbox_face

source/src/texture.cpp:610–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608COMMANDF(getnotexture, "", () { result(mapconfigdata.notexturename); });
609
610void draw_envbox_face(float s0, float t0, float x0, float y0, float z0,
611 float s1, float t1, float x1, float y1, float z1,
612 float s2, float t2, float x2, float y2, float z2,
613 float s3, float t3, float x3, float y3, float z3,
614 Texture *tex)
615{
616 glBindTexture(GL_TEXTURE_2D, tex->id);
617 glBegin(GL_TRIANGLE_STRIP);
618 glTexCoord2f(s3, t3); glVertex3f(x3, y3, z3);
619 glTexCoord2f(s2, t2); glVertex3f(x2, y2, z2);
620 glTexCoord2f(s0, t0); glVertex3f(x0, y0, z0);
621 glTexCoord2f(s1, t1); glVertex3f(x1, y1, z1);
622 glEnd();
623 xtraverts += 4;
624}
625
626VAR(skyclip, 0, 1, 1);
627

Callers 1

draw_envboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected