![]() |
Elevate Engine 1
|
#include <OpenGLShader.h>
Public Member Functions | |
| OpenGLShader (const std::string &vertexSource, const std::string &fragmentSouce) | |
| virtual | ~OpenGLShader () |
| virtual uint32_t | GetID () const override |
| virtual void | Bind () const override |
| virtual void | Unbind () const override |
| virtual uint32_t | GetHashCode () const override |
| virtual unsigned int | GetRendererID () const override |
| virtual void | SetUniform1f (const std::string &location, float value) const override |
| UNIFORMS. | |
| virtual void | SetUniform2f (const std::string &location, float x, float y) const override |
| virtual void | SetUniform3f (const std::string &location, float x, float y, float z) const override |
| virtual void | SetUniform4f (const std::string &location, float x, float y, float z, float w) const override |
| virtual void | SetUniform1i (const std::string &location, int value) const override |
| virtual void | SetUniform2i (const std::string &location, int x, int y) const override |
| virtual void | SetUniform3i (const std::string &location, int x, int y, int z) const override |
| virtual void | SetUniform4i (const std::string &location, int x, int y, int z, int w) const override |
| virtual void | SetUniform1fv (const std::string &location, int count, float *value) const override |
| virtual void | SetUniform2fv (const std::string &location, int count, float *value) const override |
| virtual void | SetUniform3fv (const std::string &location, int count, float *value) const override |
| virtual void | SetUniform4fv (const std::string &location, int count, float *value) const override |
| virtual void | SetUniform1iv (const std::string &location, int count, int *value) const override |
| virtual void | SetUniform2iv (const std::string &location, int count, int *value) const override |
| virtual void | SetUniform3iv (const std::string &location, int count, int *value) const override |
| virtual void | SetUniform4iv (const std::string &location, int count, int *value) const override |
| virtual void | SetUniformMatrix2fv (const std::string &location, float *data) const override |
| virtual void | SetUniformMatrix3fv (const std::string &location, float *data) const override |
| virtual void | SetUniformMatrix4fv (const std::string &location, float *data) const override |
Public Member Functions inherited from Elevate::Shader | |
| ~Shader () | |
| 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. | |
| 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 |
| void | SetUniformMatrix2fv (const std::string &location, glm::mat2 data) const |
| void | SetUniformMatrix3fv (const std::string &location, glm::mat3 data) const |
| void | SetUniformMatrix4fv (const std::string &location, glm::mat4 data) const |
| bool | IsInitialized () |
| const BufferLayout & | GetLayout () |
Protected Member Functions | |
| virtual BufferLayout | ExtractReflectionData () const override |
Protected Member Functions inherited from Elevate::Shader | |
| void | SetInitializationStatus (bool initialized) |
Additional Inherited Members | |
Static Public Member Functions inherited from Elevate::Shader | |
| 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) |
Definition at line 8 of file OpenGLShader.h.
| Elevate::OpenGLShader::OpenGLShader | ( | const std::string & | vertexSource, |
| const std::string & | fragmentSouce | ||
| ) |
Definition at line 17 of file OpenGLShader.cpp.
|
virtual |
Definition at line 131 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 141 of file OpenGLShader.cpp.
|
overrideprotectedvirtual |
Implements Elevate::Shader.
Definition at line 277 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 151 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 136 of file OpenGLShader.cpp.
|
inlineoverridevirtual |
Implements Elevate::Shader.
Definition at line 19 of file OpenGLShader.h.
|
overridevirtual |
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 196 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 176 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 216 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 161 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 201 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 181 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 221 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 166 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 206 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 186 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 226 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 171 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 211 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 191 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 231 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 236 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 241 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 246 of file OpenGLShader.cpp.
|
overridevirtual |
Implements Elevate::Shader.
Definition at line 146 of file OpenGLShader.cpp.