TDME2 1.9.121
Private Member Functions | Private Attributes | Friends | List of all members
MeshManager_MeshManaged Class Referencefinal

Managed mesh entity. More...

#include <tdme/engine/subsystems/manager/MeshManager_MeshManaged.h>

Collaboration diagram for MeshManager_MeshManaged:
Collaboration graph

Private Member Functions

 MeshManager_MeshManaged (const string &id, Object3DNodeMesh *mesh)
 Protected constructor. More...
 
 ~MeshManager_MeshManaged ()
 Protected Denstructor. More...
 
const string & getId ()
 
Object3DNodeMeshgetMesh ()
 
int32_t getReferenceCounter ()
 
bool decrementReferenceCounter ()
 decrement reference counter More...
 
void incrementReferenceCounter ()
 increment reference counter More...
 

Private Attributes

string id
 
Object3DNodeMeshmesh { nullptr }
 
int32_t referenceCounter { 0 }
 

Friends

class MeshManager
 

Detailed Description

Managed mesh entity.

Author
Andreas Drewke

Definition at line 18 of file MeshManager_MeshManaged.h.

Constructor & Destructor Documentation

◆ MeshManager_MeshManaged()

MeshManager_MeshManaged ( const string &  id,
Object3DNodeMesh mesh 
)
private

Protected constructor.

Parameters
idid
meshmesh

Definition at line 15 of file MeshManager_MeshManaged.cpp.

◆ ~MeshManager_MeshManaged()

Protected Denstructor.

Definition at line 21 of file MeshManager_MeshManaged.cpp.

Member Function Documentation

◆ decrementReferenceCounter()

bool decrementReferenceCounter ( )
inlineprivate

decrement reference counter

Returns
if reference counter = 0

Definition at line 65 of file MeshManager_MeshManaged.h.

◆ getId()

const string & getId ( )
inlineprivate
Returns
mesh id

Definition at line 43 of file MeshManager_MeshManaged.h.

◆ getMesh()

Object3DNodeMesh * getMesh ( )
inlineprivate
Returns
object 3d node mesh

Definition at line 50 of file MeshManager_MeshManaged.h.

◆ getReferenceCounter()

int32_t getReferenceCounter ( )
inlineprivate
Returns
reference counter

Definition at line 57 of file MeshManager_MeshManaged.h.

◆ incrementReferenceCounter()

void incrementReferenceCounter ( )
inlineprivate

increment reference counter

Definition at line 73 of file MeshManager_MeshManaged.h.

Friends And Related Function Documentation

◆ MeshManager

friend class MeshManager
friend

Definition at line 20 of file MeshManager_MeshManaged.h.

Member Data Documentation

◆ id

string id
private

Definition at line 23 of file MeshManager_MeshManaged.h.

◆ mesh

Object3DNodeMesh* mesh { nullptr }
private

Definition at line 24 of file MeshManager_MeshManaged.h.

◆ referenceCounter

int32_t referenceCounter { 0 }
private

Definition at line 25 of file MeshManager_MeshManaged.h.


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