provides a shader library that handles shader loading
More...
#include <shader_library.h>
provides a shader library that handles shader loading
Definition at line 12 of file shader_library.h.
◆ shader_lib_map
typedef std::map<std::string, shader_info> cgv::render::shader_library::shader_lib_map |
|
protected |
◆ shader_library()
cgv::render::shader_library::shader_library |
( |
| ) |
|
◆ ~shader_library()
cgv::render::shader_library::~shader_library |
( |
| ) |
|
◆ add()
bool cgv::render::shader_library::add |
( |
const std::string & |
name, |
|
|
const std::string & |
file, |
|
|
const shader_define_map & |
defines = {} |
|
) |
| |
◆ begin()
shader_lib_map::iterator cgv::render::shader_library::begin |
( |
| ) |
|
|
inline |
◆ clear()
void cgv::render::shader_library::clear |
( |
context & |
ctx | ) |
|
◆ contains()
bool cgv::render::shader_library::contains |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ end()
shader_lib_map::iterator cgv::render::shader_library::end |
( |
| ) |
|
|
inline |
◆ get()
shader_program & cgv::render::shader_library::get |
( |
const std::string & |
name | ) |
|
|
inline |
◆ get_defines()
shader_define_map & cgv::render::shader_library::get_defines |
( |
const std::string & |
name | ) |
|
|
inline |
◆ get_shader_info()
shader_info & cgv::render::shader_library::get_shader_info |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ load() [1/2]
static bool cgv::render::shader_library::load |
( |
context & |
ctx, |
|
|
shader_program & |
prog, |
|
|
const std::string & |
name, |
|
|
const bool |
reload = false , |
|
|
const std::string & |
where = "" |
|
) |
| |
|
inlinestatic |
◆ load() [2/2]
static bool cgv::render::shader_library::load |
( |
context & |
ctx, |
|
|
shader_program & |
prog, |
|
|
const std::string & |
name, |
|
|
const shader_define_map & |
defines, |
|
|
const bool |
reload = false , |
|
|
const std::string & |
where = "" |
|
) |
| |
|
inlinestatic |
◆ load_all()
bool cgv::render::shader_library::load_all |
( |
context & |
ctx, |
|
|
const std::string & |
where = "" |
|
) |
| |
◆ reload()
bool cgv::render::shader_library::reload |
( |
context & |
ctx, |
|
|
const std::string & |
name, |
|
|
const shader_define_map & |
defines = {} , |
|
|
const std::string & |
where = "" |
|
) |
| |
◆ reload_all()
bool cgv::render::shader_library::reload_all |
( |
context & |
ctx, |
|
|
const std::string & |
where = "" |
|
) |
| |
◆ shaders
shader_lib_map cgv::render::shader_library::shaders |
|
protected |
The documentation for this class was generated from the following files: