コード例 #1
0
ファイル: glc_3drep.cpp プロジェクト: joewan/gcode
void GLC_3DRep::copyVboToClientSide()
{
	// Get the number of geometry of pRep
	const int pRepSize= m_pGeomList->size();
	for (int i= 0; i < pRepSize; ++i)
	{
		geomAt(i)->copyVboToClientSide();
	}
}
コード例 #2
0
ファイル: glc_3drep.cpp プロジェクト: 01iv3r/OpenPilot
void GLC_3DRep::transformSubGeometries(const GLC_Matrix4x4& matrix)
{
	// Get the number of geometry of pRep
	const int repCount= m_pGeomList->size();
	for (int i= 0; i < repCount; ++i)
	{
		GLC_Mesh* pCurrentMesh= dynamic_cast<GLC_Mesh*>(geomAt(i));
		if (NULL != pCurrentMesh)
		{
			pCurrentMesh->transformVertice(matrix);
		}
	}
}