Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | Public Attributes | List of all members
castor3d::ParticleElementDeclaration Struct Reference

#include <ParticleElementDeclaration.hpp>

Public Member Functions

C3D_API ParticleElementDeclaration ()=default
 
 ParticleElementDeclaration (castor::String const &name, ElementUsages const &usages, ParticleFormat type, uint32_t offset=0u, uint32_t divisor=0u)
 Constructor. More...
 

Public Attributes

castor::String m_name
 
ElementUsages m_usages
 
ParticleFormat m_dataType { ParticleFormat::eVec4f }
 
uint32_t m_offset { 0u }
 
uint32_t m_divisor { 0u }
 

Constructor & Destructor Documentation

◆ ParticleElementDeclaration() [1/2]

C3D_API castor3d::ParticleElementDeclaration::ParticleElementDeclaration ( )
default

◆ ParticleElementDeclaration() [2/2]

castor3d::ParticleElementDeclaration::ParticleElementDeclaration ( castor::String const &  name,
ElementUsages const &  usages,
ParticleFormat  type,
uint32_t  offset = 0u,
uint32_t  divisor = 0u 
)
inline

Constructor.

Parameters
[in]nameThe associated variable name.
[in]usagesElement possible usages (ElementUsage combination).
[in]typeElement type.
[in]offsetOffset in the stream.
[in]divisorInstanciation attribute increment.

Member Data Documentation

◆ m_dataType

ParticleFormat castor3d::ParticleElementDeclaration::m_dataType { ParticleFormat::eVec4f }

Element type.

Referenced by castor3d::operator!=(), and castor3d::operator==().

◆ m_divisor

uint32_t castor3d::ParticleElementDeclaration::m_divisor { 0u }

Instantiation attribute increment.

Referenced by castor3d::operator!=(), and castor3d::operator==().

◆ m_name

castor::String castor3d::ParticleElementDeclaration::m_name

The associated variable name.

Referenced by castor3d::operator!=(), and castor3d::operator==().

◆ m_offset

uint32_t castor3d::ParticleElementDeclaration::m_offset { 0u }

Offset in buffer.

Referenced by castor3d::operator!=(), and castor3d::operator==().

◆ m_usages

ElementUsages castor3d::ParticleElementDeclaration::m_usages

Element usage.

Referenced by castor3d::operator!=(), and castor3d::operator==().


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