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

Description

A shared pointer to a material.

Binding of Ogre::MaterialPtr.

Remarks
Obtain one with MaterialManager::getByName() or SubEntity::getMaterial(). A material consists of Techniques, each consisting of Passes.

Definition at line 17 of file AngelOgre_MaterialPtr.h.

Public Member Functions

 MaterialPtr ()
 
 MaterialPtr (const MaterialPtr &in other)
 
MaterialPtr & opAssign (const MaterialPtr &in other)
 
bool isNull ()
 
TechniqueArray getTechniques ()
 
string getName ()
 
Technique createTechnique ()
 
void removeTechnique (uint16 index)
 

Constructor & Destructor Documentation

◆ MaterialPtr() [1/2]

AngelOgre::MaterialPtr::MaterialPtr ( )

Creates an empty (null) pointer.

◆ MaterialPtr() [2/2]

AngelOgre::MaterialPtr::MaterialPtr ( const MaterialPtr &in  other)

Creates a copy pointing to the same material.

Member Function Documentation

◆ createTechnique()

Technique AngelOgre::MaterialPtr::createTechnique ( )

Creates a new, empty technique.

Returns
The technique, or null on error (forwarded as SE_GENERIC_EXCEPTION_CAUGHT script event).

◆ getName()

string AngelOgre::MaterialPtr::getName ( )

Name of the material.

◆ getTechniques()

TechniqueArray AngelOgre::MaterialPtr::getTechniques ( )

Returns a read-only list of the material's techniques.

◆ isNull()

bool AngelOgre::MaterialPtr::isNull ( )

Returns true if the pointer doesn't point to a material.

◆ opAssign()

MaterialPtr & AngelOgre::MaterialPtr::opAssign ( const MaterialPtr &in  other)

◆ removeTechnique()

void AngelOgre::MaterialPtr::removeTechnique ( uint16  index)

Removes the technique at the given index.


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