//----------------------------------------------------------------------- void SubEntity::getRenderOperation(RenderOperation& op) { // Use LOD mSubMesh->_getRenderOperation(op, mParentEntity->mMeshLodIndex); // Deal with any vertex data overrides op.vertexData = getVertexDataForBinding(); }
//----------------------------------------------------------------------- void SubEntity::getRenderOperation(RenderOperation& op) { // Use LOD mSubMesh->_getRenderOperation(op, mParentEntity->mMeshLodIndex); // Deal with any vertex data overrides op.vertexData = getVertexDataForBinding(); // If we use custom index position the client is responsible to set meaningful values if(mIndexStart != mIndexEnd) { op.indexData->indexStart = mIndexStart; op.indexData->indexCount = mIndexEnd; } }