|
| | Shader (const uint32_t program_id) |
| |
| | Shader () |
| |
| | Shader (const Shader &)=delete |
| |
| Shader & | operator= (const Shader &)=delete |
| |
| | Shader (Shader &&other) noexcept |
| |
| Shader & | operator= (Shader &&other) noexcept |
| |
| void | use () const |
| |
| uint32_t | get_program_id () const |
| |
| bool | is_valid () const |
| |
| void | set_bool (const std::string &name, const bool value) const |
| |
| void | set_int (const std::string &name, const int value) const |
| |
| void | set_uint (const std::string &name, const uint32_t value) const |
| |
| void | set_float (const std::string &name, const float value) const |
| |
| void | set_vec2 (const std::string &name, const glm::vec2 &value) const |
| |
| void | set_vec2 (const std::string &name, const float x, const float y) const |
| |
| void | set_vec3 (const std::string &name, const glm::vec3 &value) const |
| |
| void | set_vec3 (const std::string &name, const float x, const float y, const float z) const |
| |
| void | set_vec4 (const std::string &name, const glm::vec4 &value) const |
| |
| void | set_vec4 (const std::string &name, float x, float y, float z, float w) const |
| |
| void | set_mat2 (const std::string &name, const glm::mat2 &value) const |
| |
| void | set_mat3 (const std::string &name, const glm::mat3 &value) const |
| |
| void | set_mat4 (const std::string &name, const glm::mat4 &value) const |
| |
| void | set_transform_matrices (const glm::mat4 &model, const glm::mat4 &view, const glm::mat4 &projection) const |
| |
| void | set_view_projection (const glm::mat4 &view, const glm::mat4 &projection) const |
| |
| void | set_camera_position (const glm::vec3 &position) const |
| |
| void | set_time (const float time) const |
| |
| void | set_light_counts (const int directional_lights, const int point_lights) const |
| |
| void | set_directional_light (const int index, const glm::vec3 &direction, const glm::vec3 &color, const float intensity=1.0f) const |
| |
| void | set_point_light (const int index, const glm::vec3 &position, const glm::vec3 &color, const float constant=1.0f, const float linear=0.09f, const float quadratic=0.032f) const |
| |
| void | set_texture (const std::string &name, const int texture_unit) const |
| |
| bool | has_uniform (const std::string &name) const |
| |
Definition at line 10 of file Shader.h.