glut/lib/glsmap/smap_drawmesh.c
/* Back face specially rendered for its singularity! */
Back face specially rendered for its singularity!
Back face specially rendered for its singularity!
void
__smapDrawSphereMapMeshBack(SphereMapMesh *mesh)
{
    INITBACK(mesh);
    int side, i, j;
    for (side=0; side<4; side++) {
        for (j=0; j<mesh->rings-1+mesh->edgeExtend; j++) {
            glBegin(GL_QUAD_STRIP);
            for (i=0; i<mesh->steps; i++) {
                glTexCoord2fv (BACKst(side,j,i));
                glVertex2fv   (BACKxy(side,j,i));
                glTexCoord2fv (BACKst(side,j+1,i));
                glVertex2fv   (BACKxy(side,j+1,i));
            }
            glEnd();
        }
    }
}
void __smapDrawSphereMapMeshBack ( SphereMapMesh * mesh ) { INITBACK ( mesh ) ; int side , i , j ; for ( side = 0 ; side < 4 ; side ++ ) { for ( j = 0 ; j < mesh -> rings - 1 + mesh -> edgeExtend ; j ++ ) { glBegin ( GL_QUAD_STRIP ) ; for ( i = 0 ; i < mesh -> steps ; i ++ ) { glTexCoord2fv ( BACKst ( side , j , i ) ) ; glVertex2fv ( BACKxy ( side , j , i ) ) ; glTexCoord2fv ( BACKst ( side , j + 1 , i ) ) ; glVertex2fv ( BACKxy ( side , j + 1 , i ) ) ; } glEnd ( ) ; } } }
Back face specially rendered for its singularity!
Back face specially rendered for its singularity!