Class shader¶
Defined in File shader.hpp
Class Documentation¶
-
class
legion::rendering
::
shader
¶ Abstraction class of a shader program.
Public Functions
-
shader
() = default¶
-
bool
has_variant
(id_type variantId) const¶
-
bool
has_variant
(const std::string &variant) const¶
-
void
configure_variant
(id_type variantId) const¶
-
void
configure_variant
(const std::string &variant) const¶
-
shader_variant &
get_variant
(id_type variantId)¶
-
shader_variant &
get_variant
(const std::string &variant)¶
-
const shader_variant &
get_variant
(id_type variantId) const¶
-
const shader_variant &
get_variant
(const std::string &variant) const¶
-
void
bind
()¶
-
GLuint
get_uniform_block_index
(const std::string &name) const¶
-
void
bind_uniform_block
(GLuint uniformBlockIndex, GLuint uniformBlockBinding) const¶
-
template<typename
T
>
inline boolhas_uniform
(const std::string &name)¶
-
template<typename
T
>
inline boolhas_uniform
(id_type id)¶
-
template<typename
T
>
inline boolhas_uniform_with_location
(GLint location)¶
Public Static Functions
-
static void
release
()¶
Friends
- friend class ShaderCache
- friend struct shader_handle
-