sculpto
|
#include <gl_shader.h>
Public Member Functions | |
render_primitive::handle | GetHandle () const override |
gl_shader_program (const std::vector< shader_props > &Shaders, const std::string &DebugName) | |
~gl_shader_program () | |
bool | SetBool (const std::string &Name, bool Value) const override |
bool | SetFloat (const std::string &Name, float Value) const override |
bool | SetFloat2 (const std::string &Name, const vec2 &Value) const override |
bool | SetFloat3 (const std::string &Name, const vec3 &Value) const override |
bool | SetFloat4 (const std::string &Name, const vec4 &Value) const override |
bool | SetInt (const std::string &Name, int Value) const override |
bool | SetInt2 (const std::string &Name, const ivec2 &Value) const override |
bool | SetInt3 (const std::string &Name, const ivec3 &Value) const override |
bool | SetInt4 (const std::string &Name, const ivec4 &Value) const override |
bool | SetUInt (const std::string &Name, u32 Value) const override |
bool | SetUInt2 (const std::string &Name, const uvec2 &Value) const override |
bool | SetUInt3 (const std::string &Name, const uvec3 &Value) const override |
bool | SetUInt4 (const std::string &Name, const uvec4 &Value) const override |
bool | SetMatr3 (const std::string &Name, const matr3 &Value) const override |
bool | SetMatr4 (const std::string &Name, const matr4 &Value) const override |
bool | SetBool (int Location, bool Value) const override |
bool | SetFloat (int Location, float Value) const |
bool | SetFloat2 (int Location, const vec2 &Value) const |
bool | SetFloat3 (int Location, const vec3 &Value) const |
bool | SetFloat4 (int Location, const vec4 &Value) const |
bool | SetInt (int Location, int Value) const |
bool | SetInt2 (int Location, const ivec2 &Value) const |
bool | SetInt3 (int Location, const ivec3 &Value) const |
bool | SetInt4 (int Location, const ivec4 &Value) const |
bool | SetUInt (int Location, u32 Value) const |
bool | SetUInt2 (int Location, const uvec2 &Value) const |
bool | SetUInt3 (int Location, const uvec3 &Value) const |
bool | SetUInt4 (int Location, const uvec4 &Value) const |
bool | SetMatr3 (int Location, const matr3 &Value) const |
bool | SetMatr4 (int Location, const matr4 &Value) const |
void | Bind () const override |
void | Unbind () const override |
void | Update (const std::vector< shader_props > &Shaders) override |
void | Free () override |
Public Member Functions inherited from scl::shader_program | |
virtual bool | SetBool (const std::string &Name, bool Value) const =0 |
virtual bool | SetFloat (const std::string &Name, float Value) const =0 |
virtual bool | SetFloat2 (const std::string &Name, const vec2 &Value) const =0 |
virtual bool | SetFloat3 (const std::string &Name, const vec3 &Value) const =0 |
virtual bool | SetFloat4 (const std::string &Name, const vec4 &Value) const =0 |
virtual bool | SetInt (const std::string &Name, int Value) const =0 |
virtual bool | SetInt2 (const std::string &Name, const ivec2 &Value) const =0 |
virtual bool | SetInt3 (const std::string &Name, const ivec3 &Value) const =0 |
virtual bool | SetInt4 (const std::string &Name, const ivec4 &Value) const =0 |
virtual bool | SetUInt (const std::string &Name, u32 Value) const =0 |
virtual bool | SetUInt2 (const std::string &Name, const uvec2 &Value) const =0 |
virtual bool | SetUInt3 (const std::string &Name, const uvec3 &Value) const =0 |
virtual bool | SetUInt4 (const std::string &Name, const uvec4 &Value) const =0 |
virtual bool | SetMatr3 (const std::string &Name, const matr3 &Value) const =0 |
virtual bool | SetMatr4 (const std::string &Name, const matr4 &Value) const =0 |
virtual bool | SetBool (int Location, bool Value) const =0 |
virtual bool | SetFloat (int Location, float Value) const =0 |
virtual bool | SetFloat2 (int Location, const vec2 &Value) const =0 |
virtual bool | SetFloat3 (int Location, const vec3 &Value) const =0 |
virtual bool | SetFloat4 (int Location, const vec4 &Value) const =0 |
virtual bool | SetInt (int Location, int Value) const =0 |
virtual bool | SetInt2 (int Location, const ivec2 &Value) const =0 |
virtual bool | SetInt3 (int Location, const ivec3 &Value) const =0 |
virtual bool | SetInt4 (int Location, const ivec4 &Value) const =0 |
virtual bool | SetUInt (int Location, u32 Value) const =0 |
virtual bool | SetUInt2 (int Location, const uvec2 &Value) const =0 |
virtual bool | SetUInt3 (int Location, const uvec3 &Value) const =0 |
virtual bool | SetUInt4 (int Location, const uvec4 &Value) const =0 |
virtual bool | SetMatr3 (int Location, const matr3 &Value) const =0 |
virtual bool | SetMatr4 (int Location, const matr4 &Value) const =0 |
shader_program (const std::string &DebugName) | |
virtual | ~shader_program ()=default |
virtual void | Bind () const =0 |
virtual void | Unbind () const =0 |
virtual void | Update (const std::vector< shader_props > &Shaders)=0 |
virtual void | Free ()=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from scl::shader_program | |
static shared< shader_program > | Create (const std::vector< shader_props > &Shaders, const std::string &DebugName) |
Public Attributes inherited from scl::shader_program | |
std::string | SingleSourceFileName {} |
std::string | VertexShadersourceFileName {} |
std::string | GeometryShadersourceFileName {} |
std::string | PixelShadersourceFileName {} |
std::string | DebugName {} |
OpenGL shader_props program class.
Definition at line 17 of file gl_shader.h.
scl::gl_shader_program::gl_shader_program | ( | const std::vector< shader_props > & | Shaders, |
const std::string & | DebugName | ||
) |
Shaders | - shaders array. |
DubugName | - shader program debug name. |
Definition at line 129 of file gl_shader.cpp.
scl::gl_shader_program::~gl_shader_program | ( | ) |
Default destructor.
Definition at line 135 of file gl_shader.cpp.
|
overridevirtual |
None. |
Implements scl::shader_program.
Definition at line 140 of file gl_shader.cpp.
|
overridevirtual |
None. |
Implements scl::shader_program.
Definition at line 162 of file gl_shader.cpp.
|
inlineoverride |
Backend api render primitive hadnle getter function.
Definition at line 77 of file gl_shader.h.
|
overridevirtual |
Name | - unifrom variable name. |
Value | - unifrom variable name. |
Implements scl::shader_program.
Definition at line 183 of file gl_shader.cpp.
|
overridevirtual |
Location | - platform specific shader variable location identifier. |
Value | - unifrom variable value. |
Implements scl::shader_program.
Definition at line 333 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 193 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 340 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 203 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 347 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 213 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 354 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 223 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 361 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 233 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 368 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 243 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 375 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 253 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 382 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 263 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 389 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 313 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 424 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 323 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 431 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 273 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 396 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 283 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 403 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 293 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 410 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 303 of file gl_shader.cpp.
|
virtual |
Implements scl::shader_program.
Definition at line 417 of file gl_shader.cpp.
|
overridevirtual |
None. |
Implements scl::shader_program.
Definition at line 149 of file gl_shader.cpp.
|
overridevirtual |
Implements scl::shader_program.
Definition at line 155 of file gl_shader.cpp.