#include <Shader.hpp>
Public Member Functions | |
| Shader (Instance *inst, ResourcePath const &path) | |
| ~Shader () | |
| Instance * | instance () const |
| void | status (iv::TableDebugView *view) |
| void | LoadProgram () |
| void | BindAttribute (GLuint location, const char *attrib_name) |
| void | PositionAttributeName (const char *name) |
| void | LinkProgram () |
| void | UnloadProgram () |
| void | DropProgram () |
| const GlProgram * | gl_program () const |
| GLint | GetUniformLocation (const char *name) const |
Public Attributes | |
| ClientMarker | cm |
Detailed Description
To create shader using VirtualResourceProvider method, construct it from a path which has fragment shader source at path+".frag" and vertex shader source at path+".vert".
Definition at line 17 of file Shader.hpp.
Constructor & Destructor Documentation
◆ Shader()
| iv::Shader::Shader | ( | Instance * | inst, |
| ResourcePath const & | path | ||
| ) |
Definition at line 9 of file Shader.cpp.
◆ ~Shader()
| iv::Shader::~Shader | ( | ) |
Definition at line 17 of file Shader.cpp.
Member Function Documentation
◆ instance()
| Instance * iv::Shader::instance | ( | ) | const |
Definition at line 22 of file Shader.cpp.
◆ status()
| void iv::Shader::status | ( | iv::TableDebugView * | view | ) |
Definition at line 27 of file Shader.cpp.
◆ LoadProgram()
| void iv::Shader::LoadProgram | ( | ) |
Definition at line 36 of file Shader.cpp.
◆ BindAttribute()
| void iv::Shader::BindAttribute | ( | GLuint | location, |
| const char * | attrib_name | ||
| ) |
Definition at line 60 of file Shader.cpp.
◆ PositionAttributeName()
| void iv::Shader::PositionAttributeName | ( | const char * | name | ) |
Definition at line 65 of file Shader.cpp.
◆ LinkProgram()
| void iv::Shader::LinkProgram | ( | ) |
Definition at line 70 of file Shader.cpp.
◆ UnloadProgram()
| void iv::Shader::UnloadProgram | ( | ) |
Definition at line 75 of file Shader.cpp.
◆ DropProgram()
| void iv::Shader::DropProgram | ( | ) |
Definition at line 80 of file Shader.cpp.
◆ gl_program()
| const GlProgram * iv::Shader::gl_program | ( | ) | const |
Definition at line 93 of file Shader.cpp.
◆ GetUniformLocation()
| GLint iv::Shader::GetUniformLocation | ( | const char * | name | ) | const |
Definition at line 85 of file Shader.cpp.
Member Data Documentation
◆ cm
| ClientMarker iv::Shader::cm |
Definition at line 20 of file Shader.hpp.
The documentation for this class was generated from the following files:
- ivorium_graphics/Rendering/Shader.hpp
- ivorium_graphics/Rendering/Shader.cpp

