Graphics class that represents the declaration of the particle, works like an ECS.
More...
Graphics class that represents the declaration of the particle, works like an ECS.
◆ ParticleDeclaration()
◆ ~ParticleDeclaration()
| Nz::ParticleDeclaration::~ParticleDeclaration |
( |
| ) |
|
Destructs the object and calls OnParticleDeclarationRelease.
- See also
- OnParticleDeclarationRelease
◆ DisableComponent()
| void Nz::ParticleDeclaration::DisableComponent |
( |
ParticleComponent |
component | ) |
|
Disables a component.
- Parameters
-
| component | Component to disable in the declaration |
◆ EnableComponent()
| void Nz::ParticleDeclaration::EnableComponent |
( |
ParticleComponent |
component, |
|
|
ComponentType |
type, |
|
|
std::size_t |
offset |
|
) |
| |
Enables a component.
- Parameters
-
| component | Component to enable in the declaration |
| type | Type of this component |
| offset | Offset in the declaration |
◆ Get()
Gets the particle declaration based on the layout.
- Returns
- Pointer to the declaration
- Parameters
-
| layout | Layout of the particle declaration |
◆ GetComponent()
| void Nz::ParticleDeclaration::GetComponent |
( |
ParticleComponent |
component, |
|
|
bool * |
enabled, |
|
|
ComponentType * |
type, |
|
|
std::size_t * |
offset |
|
) |
| const |
Gets a component.
- Parameters
-
| component | Component in the declaration |
| enabled | Optional argument to get if this component is enabled |
| type | Optional argument to get if the type of the component |
| offset | Optional argument to get if the offset in the declaration |
◆ GetStride()
| std::size_t Nz::ParticleDeclaration::GetStride |
( |
| ) |
const |
Gets the stride of the declaration.
- Returns
- Stride of the declaration
◆ IsTypeSupported()
| bool Nz::ParticleDeclaration::IsTypeSupported |
( |
ComponentType |
type | ) |
|
|
static |
Checks whether the type is supported.
- Returns
- true If it is the case
- Parameters
-
| type | Type of the component |
◆ operator=()
Sets the current particle declaration with the content of the other one.
- Returns
- A reference to this
- Parameters
-
◆ SetStride()
| void Nz::ParticleDeclaration::SetStride |
( |
unsigned int |
stride | ) |
|
Sets the stride of the declaration.
- Parameters
-
| stride | Stride of the declaration |
The documentation for this class was generated from the following files:
- include/Nazara/Graphics/ParticleDeclaration.hpp
- include/Nazara/Graphics/ParticleDeclaration.inl
- src/Nazara/Graphics/ParticleDeclaration.cpp