|
Bomberman
|
#include <ShaderComponent.hpp>
Public Member Functions | |
| RAY::Shader & | getShader () |
| getter for _shader More... | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| std::string | getFragmentFilePath () const |
| get the fragment file path More... | |
| std::string | getVertexFilePath () const |
| get the fragment file path More... | |
| ShaderComponent (WAL::Entity &entity, const std::string &fragmentFilePath, const std::string &vertexFilePath="", const WAL::Callback< WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds > &onFixedUpdate=WAL::Callback< WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds >(), bool lonely=false) | |
| ctor More... | |
| ShaderComponent (const ShaderComponent &)=default | |
| Default copy ctor. More... | |
| ~ShaderComponent () override=default | |
| Default dtor. More... | |
| ShaderComponent & | operator= (const ShaderComponent &)=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 | |
| RAY::Shader | shader |
| The shader to be applied. More... | |
| std::string | fragmentFilePath |
| The path to the fragment file. More... | |
| std::string | vertexFilePath |
| The path to the vertex file. More... | |
| WAL::Callback< WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds > | update |
| the function called to update shaders vars 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... | |
| BBM::ShaderComponent::ShaderComponent | ( | WAL::Entity & | entity, |
| const std::string & | fragmentFilePath, | ||
| const std::string & | vertexFilePath = "", |
||
| const WAL::Callback< WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds > & | onFixedUpdate = WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds>(), |
||
| bool | lonely = false |
||
| ) |
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.
| std::string BBM::ShaderComponent::getFragmentFilePath | ( | ) | const |
get the fragment file path
| RAY::Shader & BBM::ShaderComponent::getShader | ( | ) |
getter for _shader
| std::string BBM::ShaderComponent::getVertexFilePath | ( | ) | const |
get the fragment file path
|
delete |
Default assignment operator.
| std::string BBM::ShaderComponent::fragmentFilePath |
The path to the fragment file.
| RAY::Shader BBM::ShaderComponent::shader |
The shader to be applied.
| WAL::Callback<WAL::Entity &, WAL::Wal &, std::chrono::nanoseconds> BBM::ShaderComponent::update |
the function called to update shaders vars
| std::string BBM::ShaderComponent::vertexFilePath |
The path to the vertex file.
1.8.17