|
Blender V5.0
|
#include <shader.h>
Public Member Functions | |
| OpenGLShader ()=default | |
| virtual | ~OpenGLShader ()=default |
| int | get_position_attrib_location () |
| int | get_tex_coord_attrib_location () |
| void | bind (const int width, const int height) |
| void | unbind () |
Static Public Attributes | |
| static constexpr const char * | position_attribute_name = "pos" |
| static constexpr const char * | tex_coord_attribute_name = "texCoord" |
Protected Member Functions | |
| uint | get_shader_program () |
| void | create_shader_if_needed () |
| void | destroy_shader () |
Protected Attributes | |
| int | position_attribute_location_ = -1 |
| int | tex_coord_attribute_location_ = -1 |
| uint | shader_program_ = 0 |
| int | image_texture_location_ = -1 |
| int | fullscreen_location_ = -1 |
| bool | shader_compile_attempted_ = false |
Definition at line 11 of file app/opengl/shader.h.
|
default |
|
virtualdefault |
| void OpenGLShader::bind | ( | const int | width, |
| const int | height ) |
Definition at line 142 of file app/opengl/shader.cpp.
References create_shader_if_needed(), fullscreen_location_, image_texture_location_, and shader_program_.
|
protected |
Definition at line 162 of file app/opengl/shader.cpp.
References compile_shader_program(), destroy_shader(), fullscreen_location_, image_texture_location_, LOG_ERROR, shader_compile_attempted_, and shader_program_.
Referenced by bind().
|
protected |
Definition at line 192 of file app/opengl/shader.cpp.
References shader_program_.
Referenced by create_shader_if_needed().
| int OpenGLShader::get_position_attrib_location | ( | ) |
Definition at line 124 of file app/opengl/shader.cpp.
References get_shader_program(), position_attribute_location_, and position_attribute_name.
|
protected |
Definition at line 157 of file app/opengl/shader.cpp.
References shader_program_.
Referenced by get_position_attrib_location(), and get_tex_coord_attrib_location().
| int OpenGLShader::get_tex_coord_attrib_location | ( | ) |
Definition at line 133 of file app/opengl/shader.cpp.
References get_shader_program(), tex_coord_attribute_location_, and tex_coord_attribute_name.
| void OpenGLShader::unbind | ( | ) |
Definition at line 155 of file app/opengl/shader.cpp.
|
protected |
Definition at line 39 of file app/opengl/shader.h.
Referenced by bind(), and create_shader_if_needed().
|
protected |
Definition at line 38 of file app/opengl/shader.h.
Referenced by bind(), and create_shader_if_needed().
|
protected |
Definition at line 34 of file app/opengl/shader.h.
Referenced by get_position_attrib_location().
|
staticconstexpr |
Definition at line 13 of file app/opengl/shader.h.
Referenced by get_position_attrib_location().
|
protected |
Definition at line 43 of file app/opengl/shader.h.
Referenced by create_shader_if_needed().
|
protected |
Definition at line 37 of file app/opengl/shader.h.
Referenced by bind(), create_shader_if_needed(), destroy_shader(), and get_shader_program().
|
protected |
Definition at line 35 of file app/opengl/shader.h.
Referenced by get_tex_coord_attrib_location().
|
staticconstexpr |
Definition at line 14 of file app/opengl/shader.h.
Referenced by get_tex_coord_attrib_location().