Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::ParticleSystem::Block Class Reference

Memory management element for the ParticleBuffer. More...

Public Member Functions

 Block (const shared_ptr< ParticleSystem > &ps, const shared_ptr< ParticleSurface > &s, int startIndex, int reserve)
 

Public Attributes

int count
 Number of elements currently in use. More...
 
weak_ptr< ParticleSystemparticleSystem
 
int reserve
 Total size (in elements) reserved, including the count that are in use. More...
 
int startIndex
 In s_particleBuffer. More...
 
weak_ptr< ParticleSurfacesurface
 If nullptr, this block may be garbage collected. More...
 

Detailed Description

Memory management element for the ParticleBuffer.

Constructor & Destructor Documentation

◆ Block()

G3D::ParticleSystem::Block::Block ( const shared_ptr< ParticleSystem > &  ps,
const shared_ptr< ParticleSurface > &  s,
int  startIndex,
int  reserve 
)
inline

Member Data Documentation

◆ count

int G3D::ParticleSystem::Block::count

Number of elements currently in use.

◆ particleSystem

weak_ptr<ParticleSystem> G3D::ParticleSystem::Block::particleSystem

◆ reserve

int G3D::ParticleSystem::Block::reserve

Total size (in elements) reserved, including the count that are in use.

◆ startIndex

int G3D::ParticleSystem::Block::startIndex

In s_particleBuffer.

◆ surface

weak_ptr<ParticleSurface> G3D::ParticleSystem::Block::surface

If nullptr, this block may be garbage collected.


documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15