base interface for shader programs
More...
#include <context.h>
|
| | shader_program_base () |
| | initializes members
|
| void | specify_standard_uniforms (bool view, bool material, bool lights, bool gamma) |
| void | specify_standard_vertex_attribute_names (context &ctx, bool color=true, bool normal=true, bool texcoord=true) |
| void | specify_vertex_attribute_names (context &ctx, const std::string &position, const std::string &color="", const std::string &normal="", const std::string &texcoord="") |
| bool | does_use_view () const |
| bool | does_use_material () const |
| bool | does_use_lights () const |
| bool | does_use_gamma () const |
| void | allow_context_to_set_color (bool allow) |
| int | get_position_index () const |
| int | get_color_index () const |
| bool | does_context_set_color () const |
| int | get_normal_index () const |
| int | get_texcoord_index () const |
| | render_component () |
| | initialize members
|
| virtual bool | is_created () const |
| | return whether component has been created
|
| void | put_id_void (void *ptr) const |
| | copy the rendering api specific id the component to the memory location of the given pointer.
|
| template<typename T> |
| void | put_id (T &id) const |
| | cast the refence to rendering api specific representation of component id to the specified type
|
base interface for shader programs
Definition at line 411 of file context.h.
◆ shader_program_base()
| cgv::render::shader_program_base::shader_program_base |
( |
| ) |
|
◆ allow_context_to_set_color()
| void cgv::render::shader_program_base::allow_context_to_set_color |
( |
bool | allow | ) |
|
◆ does_context_set_color()
| bool cgv::render::shader_program_base::does_context_set_color |
( |
| ) |
const |
|
inline |
◆ does_use_gamma()
| bool cgv::render::shader_program_base::does_use_gamma |
( |
| ) |
const |
|
inline |
◆ does_use_lights()
| bool cgv::render::shader_program_base::does_use_lights |
( |
| ) |
const |
|
inline |
◆ does_use_material()
| bool cgv::render::shader_program_base::does_use_material |
( |
| ) |
const |
|
inline |
◆ does_use_view()
| bool cgv::render::shader_program_base::does_use_view |
( |
| ) |
const |
|
inline |
◆ get_color_index()
| int cgv::render::shader_program_base::get_color_index |
( |
| ) |
const |
|
inline |
◆ get_normal_index()
| int cgv::render::shader_program_base::get_normal_index |
( |
| ) |
const |
|
inline |
◆ get_position_index()
| int cgv::render::shader_program_base::get_position_index |
( |
| ) |
const |
|
inline |
◆ get_texcoord_index()
| int cgv::render::shader_program_base::get_texcoord_index |
( |
| ) |
const |
|
inline |
◆ specify_standard_uniforms()
| void cgv::render::shader_program_base::specify_standard_uniforms |
( |
bool | view, |
|
|
bool | material, |
|
|
bool | lights, |
|
|
bool | gamma ) |
◆ specify_standard_vertex_attribute_names()
| void cgv::render::shader_program_base::specify_standard_vertex_attribute_names |
( |
context & | ctx, |
|
|
bool | color = true, |
|
|
bool | normal = true, |
|
|
bool | texcoord = true ) |
◆ specify_vertex_attribute_names()
| void cgv::render::shader_program_base::specify_vertex_attribute_names |
( |
context & | ctx, |
|
|
const std::string & | position, |
|
|
const std::string & | color = "", |
|
|
const std::string & | normal = "", |
|
|
const std::string & | texcoord = "" ) |
◆ context
◆ auto_detect_uniforms
| bool cgv::render::shader_program_base::auto_detect_uniforms |
|
protected |
◆ auto_detect_vertex_attributes
| bool cgv::render::shader_program_base::auto_detect_vertex_attributes |
|
protected |
◆ color_index
| int cgv::render::shader_program_base::color_index |
|
protected |
◆ context_sets_color
| bool cgv::render::shader_program_base::context_sets_color |
|
protected |
◆ geometry_shader_input_type
| PrimitiveType cgv::render::shader_program_base::geometry_shader_input_type |
◆ geometry_shader_output_count
| int cgv::render::shader_program_base::geometry_shader_output_count |
◆ geometry_shader_output_type
| PrimitiveType cgv::render::shader_program_base::geometry_shader_output_type |
◆ is_enabled
| bool cgv::render::shader_program_base::is_enabled |
|
protected |
◆ normal_index
| int cgv::render::shader_program_base::normal_index |
|
protected |
◆ position_index
| int cgv::render::shader_program_base::position_index |
|
protected |
◆ texcoord_index
| int cgv::render::shader_program_base::texcoord_index |
|
protected |
◆ uniform_locations
| std::map<std::string, int> cgv::render::shader_program_base::uniform_locations |
|
protected |
◆ uses_gamma
| bool cgv::render::shader_program_base::uses_gamma |
|
protected |
◆ uses_lights
| bool cgv::render::shader_program_base::uses_lights |
|
protected |
◆ uses_material
| bool cgv::render::shader_program_base::uses_material |
|
protected |
◆ uses_view
| bool cgv::render::shader_program_base::uses_view |
|
protected |
The documentation for this class was generated from the following files: