comparison 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
comparison
equal deleted inserted replaced
31:a677c027e3a0 32:75202498bee9
222 lastTY = y; 222 lastTY = y;
223 return true; 223 return true;
224 224
225 }; 225 };
226 226
227
228 void makeTexFace(ofMesh * theMesh, ofPoint LT, ofPoint RT, ofPoint RB, ofPoint LB){
229
230 ofPoint texCoordLT = ofPoint(0, 1.);
231 ofPoint texCoordLB = ofPoint(0, 0);
232 ofPoint texCoordRT = ofPoint(1., 1.);
233 ofPoint texCoordRB = ofPoint(1., 0.);
234
235 theMesh->addVertex(LT);
236 theMesh->addTexCoord(texCoordLT);
237 theMesh->addVertex(LB);
238 theMesh->addTexCoord(texCoordLB);
239 theMesh->addVertex(RB);
240 theMesh->addTexCoord(texCoordRB);
241
242
243
244 theMesh->addVertex(LT);
245 theMesh->addTexCoord(texCoordLT);
246
247 theMesh->addVertex(RB);
248 theMesh->addTexCoord(texCoordRB);
249 theMesh->addVertex(RT);
250 theMesh->addTexCoord(texCoordRT);
251 }
252
227 float angleX; 253 float angleX;
228 float angleY; 254 float angleY;
229 float depth; 255 float depth;
230 ofMesh boxMesh; 256 ofMesh boxMesh;
231 float camTrans; 257 float camTrans;