Rebel Fork Framework
Urho3D::ParticleGraphAttributeLayout Class Reference

Memory layout for attributes. More...

#include <Urho3D/Particles/ParticleGraphMemory.h>

Classes

struct  AttrSpan
 Attribute layout. More...
 

Public Member Functions

void Reset (unsigned offset, unsigned capacity)
 Reset layout.
 
unsigned GetOrAddAttribute (const ea::string &name, VariantType type)
 Get or add attribute.
 
const ea::string & GetName (unsigned attrIndex) const
 Get name by attribute index.
 
VariantType GetType (unsigned attrIndex) const
 Get type by attribute index.
 
unsigned GetNumAttributes () const
 Get number of attributes.
 
unsigned GetRequiredMemory () const
 Get amount of required memory to host all attributes.
 
ParticleGraphSpan GetSpan (unsigned attrIndex) const
 Get span by attribute index.
 

Private Attributes

ea::vector< AttrSpanattributes_
 All known attributes.
 
unsigned position_ {}
 Size of required attribute buffer.
 
unsigned capacity_ {}
 Maximal number of particles.
 

Detailed Description

Memory layout for attributes.


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