Bomberman
sources
Component
Shaders
Items
AlphaCtxShaderComponent.hpp
Go to the documentation of this file.
1
//
2
// Created by cbihan on 18/06/2021.
3
//
4
5
#pragma once
6
7
#include <
Component/Component.hpp
>
8
#include <chrono>
9
10
using namespace
std::chrono_literals;
11
12
namespace
BBM
13
{
14
class
AlphaVarShaderComponent
:
public
WAL::Component
15
{
16
public
:
18
float
alpha = 1;
19
21
float
minAlpha = 0.2;
23
float
maxAlpha = 1;
25
float
initalStepValue = 0.04;
27
float
step = 0.04;
29
float
balance = -1;
30
32
std::chrono::nanoseconds clock = 0ns;
33
34
36
WAL::Component
*clone(
WAL::Entity
&entity)
const override
;
37
39
explicit
AlphaVarShaderComponent
(
WAL::Entity
&entity);
40
42
AlphaVarShaderComponent
(
const
AlphaVarShaderComponent
&) =
default
;
43
45
~
AlphaVarShaderComponent
()
override
=
default
;
46
48
AlphaVarShaderComponent
&operator=(
const
AlphaVarShaderComponent
&) =
delete
;
49
};
50
51
}
BBM::AlphaVarShaderComponent
Definition:
AlphaCtxShaderComponent.hpp:14
WAL::Component
Represent a single component of WAL.
Definition:
Component.hpp:17
BBM
Definition:
AnimationsComponent.cpp:9
WAL::Entity
An entity of the WAL's ECS.
Definition:
Entity.hpp:20
Component.hpp
Generated by
1.8.17