| 810 | } |
| 811 | |
| 812 | virtual void NodeTriangle(const GeometryVertex *v1,const GeometryVertex *v2,const GeometryVertex *v3, bool textured) |
| 813 | { |
| 814 | Resize(mIndices, mMaxIndices, mNumIndices, mNumIndices + 3); |
| 815 | |
| 816 | mIndices[mNumIndices++] = GetIndex(v1->mPos, textured ? v1->mTexel : NULL); |
| 817 | mIndices[mNumIndices++] = GetIndex(v2->mPos, textured ? v2->mTexel : NULL); |
| 818 | mIndices[mNumIndices++] = GetIndex(v3->mPos, textured ? v3->mTexel : NULL); |
| 819 | } |
| 820 | |
| 821 | |
| 822 | const float* GetVertices() const { return mVertices; } |