Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions
AngelOgre::SubMesh Class Reference

Description

A part of a mesh which uses a single material.

Binding of Ogre::SubMesh.

Remarks
Obtain one with MeshPtr::getSubMeshes(), MeshPtr::createSubMesh() or SubEntity::getSubMesh().
Methods prefixed with __ 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 ()
 

Member Function Documentation

◆ __getIndexBuffer16bit()

array< uint16 > AngelOgre::SubMesh::__getIndexBuffer16bit ( )

Returns the index buffer; only works if __getIndexType() is IT_16BIT.

◆ __getIndexBuffer32bit()

array< uint > AngelOgre::SubMesh::__getIndexBuffer32bit ( )

Returns the index buffer; only works if __getIndexType() is IT_32BIT.

◆ __getIndexType()

IndexType AngelOgre::SubMesh::__getIndexType ( )

Returns the format of the index buffer - use it to pick __getIndexBuffer16bit() or __getIndexBuffer32bit().

◆ __getVertexPositions()

array< vector3 > AngelOgre::SubMesh::__getVertexPositions ( )

Returns positions of all vertices.

◆ __getVertexTexcoords()

array< vector2 > AngelOgre::SubMesh::__getVertexTexcoords ( uint  index)

Returns texture coordinates of all vertices.

Parameters
indexWhich texture coordinate set to read (0 = first).

◆ getMaterialName()

const string & AngelOgre::SubMesh::getMaterialName ( )

Name of the material used by this submesh.

◆ setMaterialName()

void AngelOgre::SubMesh::setMaterialName ( const string &in  name,
const string &in  rg 
)

Sets the material used by this submesh.

Parameters
nameMaterial name.
rgResource group of the material.

The documentation for this class was generated from the following file: