Lines Matching refs:mesh
104 if (mLayer->mesh) { in generateMesh()
105 delete mLayer->mesh; in generateMesh()
108 mLayer->mesh = NULL; in generateMesh()
122 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { in generateMesh()
123 delete mLayer->mesh; in generateMesh()
126 mLayer->mesh = NULL; in generateMesh()
131 if (!mLayer->mesh) { in generateMesh()
132 mLayer->mesh = new TextureVertex[count * 4]; in generateMesh()
142 TextureVertex* mesh = mLayer->mesh; in generateMesh() local
153 TextureVertex::set(mesh++, r->left, r->top, u1, v1); in generateMesh()
154 TextureVertex::set(mesh++, r->right, r->top, u2, v1); in generateMesh()
155 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); in generateMesh()
156 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2); in generateMesh()