Mercurial > hg > tweakathon2ios
diff UI code/3DboxGL.h @ 32:75202498bee9
perform mode (no guides at all)
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 25 Nov 2014 17:03:33 +0000 |
parents | 8d7ae43b2edd |
children | 3af380769779 |
line wrap: on
line diff
--- a/UI code/3DboxGL.h Fri Nov 21 17:07:56 2014 +0000 +++ b/UI code/3DboxGL.h Tue Nov 25 17:03:33 2014 +0000 @@ -224,6 +224,32 @@ }; + + void makeTexFace(ofMesh * theMesh, ofPoint LT, ofPoint RT, ofPoint RB, ofPoint LB){ + + ofPoint texCoordLT = ofPoint(0, 1.); + ofPoint texCoordLB = ofPoint(0, 0); + ofPoint texCoordRT = ofPoint(1., 1.); + ofPoint texCoordRB = ofPoint(1., 0.); + + theMesh->addVertex(LT); + theMesh->addTexCoord(texCoordLT); + theMesh->addVertex(LB); + theMesh->addTexCoord(texCoordLB); + theMesh->addVertex(RB); + theMesh->addTexCoord(texCoordRB); + + + + theMesh->addVertex(LT); + theMesh->addTexCoord(texCoordLT); + + theMesh->addVertex(RB); + theMesh->addTexCoord(texCoordRB); + theMesh->addVertex(RT); + theMesh->addTexCoord(texCoordRT); + } + float angleX; float angleY; float depth;