![]() |
Elevate Engine 1
|
#include <Shader.h>
Public Member Functions | |
| ~Shader () | |
| virtual uint32_t | GetID () const =0 |
| virtual uint32_t | GetHashCode () const =0 |
| void | UseLight (Light *newLightSetting, const std::string &lightName) |
| void | UseDirLight (DirectionalLight *newDirLight) |
| void | SetCameraPosition (const glm::vec3 cameraPosition) const |
| void | SetModelMatrix (const glm::mat4 &modelMatrix) |
| void | SetModelMatrix (const GameObject &object) |
| void | SetProjectionViewMatrix (const glm::mat4 viewProjMatrix) |
| void | SetProjectionViewMatrix (const Camera &cam) |
| virtual void | SetUniform (const std::string &location, ShaderDataType type, void *value) |
| UNIFORMS. | |
| virtual void | SetUniform1f (const std::string &location, float value) const =0 |
| virtual void | SetUniform2f (const std::string &location, float x, float y) const =0 |
| virtual void | SetUniform3f (const std::string &location, float x, float y, float z) const =0 |
| virtual void | SetUniform4f (const std::string &location, float x, float y, float z, float w) const =0 |
| void | SetUniform2f (const std::string &location, glm::vec2 value) const |
| void | SetUniform3f (const std::string &location, glm::vec3 value) const |
| void | SetUniform4f (const std::string &location, glm::vec4 value) const |
| virtual void | SetUniform1i (const std::string &location, int value) const =0 |
| virtual void | SetUniform2i (const std::string &location, int x, int y) const =0 |
| virtual void | SetUniform3i (const std::string &location, int x, int y, int z) const =0 |
| virtual void | SetUniform4i (const std::string &location, int x, int y, int z, int w) const =0 |
| virtual void | SetUniform1fv (const std::string &location, int count, float *value) const =0 |
| virtual void | SetUniform2fv (const std::string &location, int count, float *value) const =0 |
| virtual void | SetUniform3fv (const std::string &location, int count, float *value) const =0 |
| virtual void | SetUniform4fv (const std::string &location, int count, float *value) const =0 |
| virtual void | SetUniform1iv (const std::string &location, int count, int *value) const =0 |
| virtual void | SetUniform2iv (const std::string &location, int count, int *value) const =0 |
| virtual void | SetUniform3iv (const std::string &location, int count, int *value) const =0 |
| virtual void | SetUniform4iv (const std::string &location, int count, int *value) const =0 |
| virtual void | SetUniformMatrix2fv (const std::string &location, float *data) const =0 |
| void | SetUniformMatrix2fv (const std::string &location, glm::mat2 data) const |
| virtual void | SetUniformMatrix3fv (const std::string &location, float *data) const =0 |
| void | SetUniformMatrix3fv (const std::string &location, glm::mat3 data) const |
| virtual void | SetUniformMatrix4fv (const std::string &location, float *data) const =0 |
| void | SetUniformMatrix4fv (const std::string &location, glm::mat4 data) const |
| virtual unsigned int | GetRendererID () const =0 |
| bool | IsInitialized () |
| const BufferLayout & | GetLayout () |
Static Public Member Functions | |
| static std::shared_ptr< Shader > | CreateDefaultNative () |
| static std::shared_ptr< Shader > | CreateDefaultErrorNative () |
| static std::shared_ptr< Shader > | CreateDefault () |
| static std::shared_ptr< Shader > | CreateDefaultError () |
| static std::shared_ptr< Shader > | Create (const std::string &vertexSource, const std::string &fragmentSouce) |
| static std::shared_ptr< Shader > | CreateFromFiles (const std::string &vertexSrcPath, const std::string &fragSrcPath) |
| static std::shared_ptr< Shader > | CreateFromFiles (const std::string &vertexSrcPath, const std::string &fragSrcPath, const std::string &customVertCode, const std::string &customFragCode) |
Protected Member Functions | |
| virtual BufferLayout | ExtractReflectionData () const =0 |
| void | SetInitializationStatus (bool initialized) |
Friends | |
| class | Renderer |
|
static |
Definition at line 48 of file Shader.cpp.
|
static |
Definition at line 38 of file Shader.cpp.
|
static |
Definition at line 43 of file Shader.cpp.
|
static |
Definition at line 28 of file Shader.cpp.
|
static |
Definition at line 18 of file Shader.cpp.
|
static |
Definition at line 79 of file Shader.cpp.
|
static |
Definition at line 86 of file Shader.cpp.
|
protectedpure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
inline |
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
inline |
| void Elevate::Shader::SetCameraPosition | ( | const glm::vec3 | cameraPosition | ) | const |
Definition at line 118 of file Shader.cpp.
|
inlineprotected |
| void Elevate::Shader::SetModelMatrix | ( | const GameObject & | object | ) |
Definition at line 128 of file Shader.cpp.
| void Elevate::Shader::SetModelMatrix | ( | const glm::mat4 & | modelMatrix | ) |
Definition at line 123 of file Shader.cpp.
| void Elevate::Shader::SetProjectionViewMatrix | ( | const Camera & | cam | ) |
Definition at line 138 of file Shader.cpp.
| void Elevate::Shader::SetProjectionViewMatrix | ( | const glm::mat4 | viewProjMatrix | ) |
Definition at line 133 of file Shader.cpp.
|
virtual |
UNIFORMS.
Sets any uniform of any type. Dispatchs the uniform using the right setter function.
| location | The name of the uniform. |
| value | The pointer to the data. |
Definition at line 158 of file Shader.cpp.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
inline |
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
inline |
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
inline |
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
| void Elevate::Shader::SetUniformMatrix2fv | ( | const std::string & | location, |
| glm::mat2 | data | ||
| ) | const |
Definition at line 143 of file Shader.cpp.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
| void Elevate::Shader::SetUniformMatrix3fv | ( | const std::string & | location, |
| glm::mat3 | data | ||
| ) | const |
Definition at line 148 of file Shader.cpp.
|
pure virtual |
Implemented in Elevate::OpenGLShader.
| void Elevate::Shader::SetUniformMatrix4fv | ( | const std::string & | location, |
| glm::mat4 | data | ||
| ) | const |
Definition at line 153 of file Shader.cpp.
| void Elevate::Shader::UseDirLight | ( | DirectionalLight * | newDirLight | ) |
Definition at line 112 of file Shader.cpp.
| void Elevate::Shader::UseLight | ( | Light * | newLightSetting, |
| const std::string & | lightName | ||
| ) |
Definition at line 104 of file Shader.cpp.