13,825
社区成员
发帖
与我相关
我的任务
分享
void Ctest::getMeshinfoEx(Ogre::Entity* ent)
{
NasalFeeding *mNasal = new NasalFeeding;
size_t m_vertex_count1, m_index_count1;
Ogre::Vector3* m_vertices1;
Ogre::Vector2* m_texcoords1;
unsigned long* m_indices1;
mNasal->getMeshInfo(ent->getMesh(), m_vertex_count1, m_vertices1, m_texcoords1, m_index_count1, m_indices1);
int i = 0;
}
public:
// size_t m_vertex_count1, m_index_count1;
// Ogre::Vector3* m_vertices1;
// Ogre::Vector2* m_texcoords1;
// unsigned long* m_indices1;
void getMeshInfo(const Ogre::MeshPtr mesh,
size_t &vertex_count,
Ogre::Vector3* &vertices,
Ogre::Vector2* &texcoords,
size_t &index_count,
unsigned long* &indices,
const Ogre::Vector3 &position = Ogre::Vector3::ZERO,
const Ogre::Quaternion &orient = Ogre::Quaternion::IDENTITY,
const Ogre::Vector3 &scale = Ogre::Vector3::UNIT_SCALE);