|
Monad Engine da02fba2
> Undercity Codex_
|
#include <Material.h>
Public Member Functions | |
| void | SetShaderProgram (const std::shared_ptr< ShaderProgram > &shaderProgram) |
| ShaderProgram * | GetShaderProgram () |
| void | SetParam (const std::string &name, float value) |
| void | SetParam (const std::string &name, float v0, float v1) |
| void | SetParam (const std::string &name, const glm::vec3 &value) |
| void | SetParam (const std::string &name, const std::shared_ptr< Texture > &texture) |
| void | Bind () |
Static Public Member Functions | |
| static std::shared_ptr< Material > | Load (const std::string &path) |
Definition at line 13 of file Material.h.
| void eng::Material::Bind | ( | ) |
Definition at line 40 of file Material.cpp.
| ShaderProgram * eng::Material::GetShaderProgram | ( | ) |
Definition at line 15 of file Material.cpp.
|
static |
Definition at line 70 of file Material.cpp.
References eng::GraphicsAPI::CreateShaderProgram(), eng::Engine::GetFileSystem(), eng::Engine::GetGraphicsAPI(), eng::Engine::GetInstance(), eng::Texture::Load(), and eng::FileSystem::LoadAssetFileText().
Referenced by eng::MeshComponent::LoadProperties(), and Player::Update().
| void eng::Material::SetParam | ( | const std::string & | name, |
| const glm::vec3 & | value | ||
| ) |
Definition at line 30 of file Material.cpp.
| void eng::Material::SetParam | ( | const std::string & | name, |
| const std::shared_ptr< Texture > & | texture | ||
| ) |
Definition at line 35 of file Material.cpp.
| void eng::Material::SetParam | ( | const std::string & | name, |
| float | v0, | ||
| float | v1 | ||
| ) |
Definition at line 25 of file Material.cpp.
| void eng::Material::SetParam | ( | const std::string & | name, |
| float | value | ||
| ) |
Definition at line 20 of file Material.cpp.
| void eng::Material::SetShaderProgram | ( | const std::shared_ptr< ShaderProgram > & | shaderProgram | ) |
Definition at line 10 of file Material.cpp.