![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
A part of a mesh which uses a single material.
Binding of Ogre::SubMesh.
MeshPtr::getSubMeshes(), MeshPtr::createSubMesh() or SubEntity::getSubMesh(). __ are experimental helpers for reading the geometry; they may change in future versions. On failure they log to Angelscript.log and return null. Definition at line 19 of file AngelOgre_SubMesh.h.
Public Member Functions | |
| const string & | getMaterialName () |
| void | setMaterialName (const string &in name, const string &in rg) |
| array< vector3 > | __getVertexPositions () |
| array< vector2 > | __getVertexTexcoords (uint index) |
| IndexType | __getIndexType () |
| array< uint16 > | __getIndexBuffer16bit () |
| array< uint > | __getIndexBuffer32bit () |
| array< uint16 > AngelOgre::SubMesh::__getIndexBuffer16bit | ( | ) |
Returns the index buffer; only works if __getIndexType() is IT_16BIT.
| array< uint > AngelOgre::SubMesh::__getIndexBuffer32bit | ( | ) |
Returns the index buffer; only works if __getIndexType() is IT_32BIT.
| IndexType AngelOgre::SubMesh::__getIndexType | ( | ) |
Returns the format of the index buffer - use it to pick __getIndexBuffer16bit() or __getIndexBuffer32bit().
| array< vector3 > AngelOgre::SubMesh::__getVertexPositions | ( | ) |
Returns positions of all vertices.
| array< vector2 > AngelOgre::SubMesh::__getVertexTexcoords | ( | uint | index | ) |
Returns texture coordinates of all vertices.
| index | Which texture coordinate set to read (0 = first). |
| const string & AngelOgre::SubMesh::getMaterialName | ( | ) |
Name of the material used by this submesh.
| void AngelOgre::SubMesh::setMaterialName | ( | const string &in | name, |
| const string &in | rg | ||
| ) |
Sets the material used by this submesh.
| name | Material name. |
| rg | Resource group of the material. |