Bomberman
Public Member Functions | Public Attributes | List of all members
BBM::AlphaVarShaderComponent Class Reference

#include <AlphaCtxShaderComponent.hpp>

Inheritance diagram for BBM::AlphaVarShaderComponent:
Collaboration diagram for BBM::AlphaVarShaderComponent:

Public Member Functions

WAL::Componentclone (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...
 
AlphaVarShaderComponentoperator= (const AlphaVarShaderComponent &)=delete
 Default assignment operator. More...
 
- Public Member Functions inherited from WAL::Component
Componentoperator= (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...
 

Constructor & Destructor Documentation

◆ AlphaVarShaderComponent() [1/2]

BBM::AlphaVarShaderComponent::AlphaVarShaderComponent ( WAL::Entity entity)
explicit

ctor

◆ AlphaVarShaderComponent() [2/2]

BBM::AlphaVarShaderComponent::AlphaVarShaderComponent ( const AlphaVarShaderComponent )
default

Default copy ctor.

◆ ~AlphaVarShaderComponent()

BBM::AlphaVarShaderComponent::~AlphaVarShaderComponent ( )
overridedefault

Default dtor.

Member Function Documentation

◆ clone()

WAL::Component * BBM::AlphaVarShaderComponent::clone ( WAL::Entity entity) const
overridevirtual

Clone a component for another or the same entity.

Parameters
entityThe entity that owns the ne component.

Implements WAL::Component.

◆ operator=()

AlphaVarShaderComponent& BBM::AlphaVarShaderComponent::operator= ( const AlphaVarShaderComponent )
delete

Default assignment operator.

Member Data Documentation

◆ alpha

float BBM::AlphaVarShaderComponent::alpha = 1

Transparency.

◆ balance

float BBM::AlphaVarShaderComponent::balance = -1

if the alpha should increase or decrease

◆ clock

std::chrono::nanoseconds BBM::AlphaVarShaderComponent::clock = 0ns

The clock to use.

◆ initalStepValue

float BBM::AlphaVarShaderComponent::initalStepValue = 0.04

inital step value

◆ maxAlpha

float BBM::AlphaVarShaderComponent::maxAlpha = 1

maximum transparency

◆ minAlpha

float BBM::AlphaVarShaderComponent::minAlpha = 0.2

minimum transparency

◆ step

float BBM::AlphaVarShaderComponent::step = 0.04

how fast the alpha will vary


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