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

#include <ShaderComponent.hpp>

Inheritance diagram for BBM::ShaderComponentModel:
Collaboration diagram for BBM::ShaderComponentModel:

Public Member Functions

void onStart () override
 The entity or this component has just been enabled. More...
 
 ShaderComponentModel (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...
 
 ShaderComponentModel (const ShaderComponentModel &)=default
 Default copy ctor. More...
 
 ~ShaderComponentModel () override=default
 Default dtor. More...
 
ShaderComponentModeloperator= (const ShaderComponentModel &)=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 onStop ()
 The entity or this component has just been disable. More...
 

Public Attributes

RAY::Drawables::Drawables3D::Modelmodel = nullptr
 
- 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...
 

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

◆ ShaderComponentModel() [1/2]

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

◆ ShaderComponentModel() [2/2]

BBM::ShaderComponentModel::ShaderComponentModel ( const ShaderComponentModel )
default

Default copy ctor.

◆ ~ShaderComponentModel()

BBM::ShaderComponentModel::~ShaderComponentModel ( )
overridedefault

Default dtor.

Member Function Documentation

◆ onStart()

void BBM::ShaderComponentModel::onStart ( )
overridevirtual

The entity or this component has just been enabled.

Reimplemented from WAL::Component.

◆ operator=()

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

Default assignment operator.

Member Data Documentation

◆ model

RAY::Drawables::Drawables3D::Model* BBM::ShaderComponentModel::model = nullptr

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