Easy3D 2.5.3
|
Management of shader programs. More...
#include <easy3d/renderer/shader_manager.h>
Static Public Member Functions | |
static ShaderProgram * | get_program (const std::string &shader_name) |
static ShaderProgram * | create_program_from_files (const std::string &file_base_name, const std::vector< ShaderProgram::Attribute > &attributes=std::vector< ShaderProgram::Attribute >(), const std::vector< std::string > &outputs=std::vector< std::string >(), bool geom_shader=false) |
static ShaderProgram * | create_program_from_files (const std::string &vert_file_name, const std::string &frag_file_name, const std::string &geom_file_name="", const std::string &extra_vert_code="", const std::string &extra_frag_code="", const std::string &extra_geom_code="", const std::vector< ShaderProgram::Attribute > &attributes=std::vector< ShaderProgram::Attribute >(), const std::vector< std::string > &outputs=std::vector< std::string >()) |
static ShaderProgram * | create_program_from_codes (const std::string &vert_code, const std::string &frag_code, const std::string &geom_code="", const std::vector< ShaderProgram::Attribute > &attributes=std::vector< ShaderProgram::Attribute >(), const std::vector< std::string > &outputs=std::vector< std::string >()) |
static std::vector< ShaderProgram * > | all_programs () |
static void | terminate () |
static void | reload () |
Management of shader programs.