Textures on back


    Sep 18 2011 | 8:51 pm
    Hi
    Mapping a texture onto glvertex (like below), how do you stop the texture appearing on the back of the shape drawn?
    glpushmatrix,
    glcolor 1 1 1,
    glenable texture,
    glbindtexture cube,
    glbegin polygon,
    gltexcoord 0 0, glvertex -1 0 0,
    gltexcoord 0 1, glvertex -1 1 0,
    gltexcoord 1 1, glvertex 0 1 0,
    gltexcoord 1 0, glvertex 0 0 0,
    glend,
    glpopmatrix,
    Thanks in advance
    Garrett