Easy3D 2.5.3
ShaderManager Class Reference

Management of shader programs. More...

#include <easy3d/renderer/shader_manager.h>

Static Public Member Functions

static ShaderProgramget_program (const std::string &shader_name)
 
static ShaderProgramcreate_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 ShaderProgramcreate_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 ShaderProgramcreate_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 ()
 

Detailed Description

Management of shader programs.

Note
make sure to call terminate() to destroy existing programs before the OpenGL context is deleted.

The documentation for this class was generated from the following files: