TDME2 1.9.121
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
VBOManager_VBOManaged Class Reference

Managed VBO entity. More...

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

Collaboration diagram for VBOManager_VBOManaged:
Collaboration graph

Public Member Functions

const string & getId ()
 
vector< int32_t > * getVBOIds ()
 
int32_t getReferenceCounter ()
 
void setUploaded (bool uploaded)
 Set uploaded. More...
 
bool isUploaded ()
 

Private Member Functions

 VBOManager_VBOManaged (const string &id, vector< int32_t > &vboIds)
 Private constructor. More...
 
bool decrementReferenceCounter ()
 decrement reference counter More...
 
void incrementReferenceCounter ()
 increment reference counter More...
 

Private Attributes

string id
 
vector< int32_t > vboIds
 
int32_t referenceCounter { 0 }
 
volatile bool uploaded { false }
 

Friends

class VBOManager
 

Detailed Description

Managed VBO entity.

Author
Andreas Drewke

Definition at line 18 of file VBOManager_VBOManaged.h.

Constructor & Destructor Documentation

◆ VBOManager_VBOManaged()

VBOManager_VBOManaged ( const string &  id,
vector< int32_t > &  vboIds 
)
private

Private constructor.

Parameters
idid
vboIdsVBO ids

Definition at line 13 of file VBOManager_VBOManaged.cpp.

Member Function Documentation

◆ decrementReferenceCounter()

bool decrementReferenceCounter ( )
inlineprivate

decrement reference counter

Returns
if reference counter = 0

Definition at line 63 of file VBOManager_VBOManaged.h.

◆ getId()

const string & getId ( )
inline
Returns
vbo id

Definition at line 40 of file VBOManager_VBOManaged.h.

◆ getReferenceCounter()

int32_t getReferenceCounter ( )
inline
Returns
reference counter

Definition at line 54 of file VBOManager_VBOManaged.h.

◆ getVBOIds()

vector< int32_t > * getVBOIds ( )
inline
Returns
vbo gl ids

Definition at line 47 of file VBOManager_VBOManaged.h.

◆ incrementReferenceCounter()

void incrementReferenceCounter ( )
inlineprivate

increment reference counter

Definition at line 71 of file VBOManager_VBOManaged.h.

◆ isUploaded()

bool isUploaded ( )
inline
Returns
if vbo's have been uploaded

Definition at line 88 of file VBOManager_VBOManaged.h.

◆ setUploaded()

void setUploaded ( bool  uploaded)
inline

Set uploaded.

Parameters
uploadeduploaded

Definition at line 81 of file VBOManager_VBOManaged.h.

Friends And Related Function Documentation

◆ VBOManager

friend class VBOManager
friend

Definition at line 20 of file VBOManager_VBOManaged.h.

Member Data Documentation

◆ id

string id
private

Definition at line 23 of file VBOManager_VBOManaged.h.

◆ referenceCounter

int32_t referenceCounter { 0 }
private

Definition at line 25 of file VBOManager_VBOManaged.h.

◆ uploaded

volatile bool uploaded { false }
private

Definition at line 26 of file VBOManager_VBOManaged.h.

◆ vboIds

vector<int32_t> vboIds
private

Definition at line 24 of file VBOManager_VBOManaged.h.


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