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

#include <ParticleElementDeclaration.hpp>

Collaboration diagram for castor3d::ParticleElementDeclaration:
Collaboration graph
[legend]

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.
 

Public Attributes

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

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.

◆ m_divisor

uint32_t castor3d::ParticleElementDeclaration::m_divisor {}

Instantiation attribute increment.

◆ m_name

castor::String castor3d::ParticleElementDeclaration::m_name {}

The associated variable name.

◆ m_offset

uint32_t castor3d::ParticleElementDeclaration::m_offset {}

Offset in buffer.

◆ m_usages

ElementUsages castor3d::ParticleElementDeclaration::m_usages {}

Element usage.


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