|
Bomberman
|
#include <AlphaCtxShaderComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| AlphaVarShaderComponent (WAL::Entity &entity) | |
| ctor More... | |
| AlphaVarShaderComponent (const AlphaVarShaderComponent &)=default | |
| Default copy ctor. More... | |
| ~AlphaVarShaderComponent () override=default | |
| Default dtor. More... | |
| AlphaVarShaderComponent & | operator= (const AlphaVarShaderComponent &)=delete |
| Default assignment operator. More... | |
Public Member Functions inherited from WAL::Component | |
| Component & | operator= (const Component &)=delete |
| A component can't be assigned. More... | |
| virtual | ~Component ()=default |
| A virtual destructor. More... | |
| virtual void | onStart () |
| The entity or this component has just been enabled. More... | |
| virtual void | onStop () |
| The entity or this component has just been disable. More... | |
Public Attributes | |
| float | alpha = 1 |
| Transparency. More... | |
| float | minAlpha = 0.2 |
| minimum transparency More... | |
| float | maxAlpha = 1 |
| maximum transparency More... | |
| float | initalStepValue = 0.04 |
| inital step value More... | |
| float | step = 0.04 |
| how fast the alpha will vary More... | |
| float | balance = -1 |
| if the alpha should increase or decrease More... | |
| std::chrono::nanoseconds | clock = 0ns |
| The clock to use. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::Component | |
| Component (Entity &entity) | |
| A component can't be instantiated, it should be derived. More... | |
| Component (const Component &)=default | |
| A component can't be instantiated, it should be derived. More... | |
Protected Attributes inherited from WAL::Component | |
| Entity & | _entity |
| The entity that own this component. More... | |
|
explicit |
ctor
|
default |
Default copy ctor.
|
overridedefault |
Default dtor.
|
overridevirtual |
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implements WAL::Component.
|
delete |
Default assignment operator.
| float BBM::AlphaVarShaderComponent::alpha = 1 |
Transparency.
| float BBM::AlphaVarShaderComponent::balance = -1 |
if the alpha should increase or decrease
| std::chrono::nanoseconds BBM::AlphaVarShaderComponent::clock = 0ns |
The clock to use.
| float BBM::AlphaVarShaderComponent::initalStepValue = 0.04 |
inital step value
| float BBM::AlphaVarShaderComponent::maxAlpha = 1 |
maximum transparency
| float BBM::AlphaVarShaderComponent::minAlpha = 0.2 |
minimum transparency
| float BBM::AlphaVarShaderComponent::step = 0.04 |
how fast the alpha will vary
1.8.17