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

#include <ShaderComponent.hpp>

Inheritance diagram for BBM::ShaderComponentDrawable2D:
Collaboration diagram for BBM::ShaderComponentDrawable2D:

Public Member Functions

 ShaderComponentDrawable2D (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...
 
 ShaderComponentDrawable2D (const ShaderComponentDrawable2D &)=default
 Default copy ctor. More...
 
 ~ShaderComponentDrawable2D () override=default
 Default dtor. More...
 
ShaderComponentDrawable2Doperator= (const ShaderComponentDrawable2D &)=delete
 Default assignment operator. More...
 
- Public Member Functions inherited from BBM::ShaderComponent
RAY::ShadergetShader ()
 getter for _shader More...
 
WAL::Componentclone (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...
 
ShaderComponentoperator= (const ShaderComponent &)=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...
 

Additional Inherited Members

- Public Attributes inherited from BBM::ShaderComponent
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...
 
- 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

◆ ShaderComponentDrawable2D() [1/2]

BBM::ShaderComponentDrawable2D::ShaderComponentDrawable2D ( 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

Note
use empty string to omit a file

◆ ShaderComponentDrawable2D() [2/2]

BBM::ShaderComponentDrawable2D::ShaderComponentDrawable2D ( const ShaderComponentDrawable2D )
default

Default copy ctor.

◆ ~ShaderComponentDrawable2D()

BBM::ShaderComponentDrawable2D::~ShaderComponentDrawable2D ( )
overridedefault

Default dtor.

Member Function Documentation

◆ operator=()

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

Default assignment operator.


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