|
cgv
|
base interface for shader programs More...
#include <context.h>
Public Member Functions | |
| 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 |
Public Member Functions inherited from cgv::render::render_component | |
| 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 | |
Public Attributes | |
| PrimitiveType | geometry_shader_input_type |
| PrimitiveType | geometry_shader_output_type |
| int | geometry_shader_output_count |
Public Attributes inherited from cgv::render::render_component | |
| void * | handle |
| void * | internal_format |
| void * | user_data |
| const context * | ctx_ptr |
| keep pointer to my context | |
| std::string | last_error |
| a string that contains the last error | |
Protected Attributes | |
| bool | is_enabled |
| bool | auto_detect_uniforms |
| bool | auto_detect_vertex_attributes |
| bool | uses_view |
| bool | uses_material |
| bool | uses_lights |
| bool | uses_gamma |
| std::map< std::string, int > | uniform_locations |
| int | position_index |
| int | color_index |
| bool | context_sets_color |
| int | normal_index |
| int | texcoord_index |
Friends | |
| class | context |
| cgv::render::shader_program_base::shader_program_base | ( | ) |
initializes members
Definition at line 2196 of file context.cxx.
Definition at line 2191 of file context.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void cgv::render::shader_program_base::specify_standard_uniforms | ( | bool | view, |
| bool | material, | ||
| bool | lights, | ||
| bool | gamma | ||
| ) |
Definition at line 2219 of file context.cxx.
| void cgv::render::shader_program_base::specify_standard_vertex_attribute_names | ( | context & | ctx, |
| bool | color = true, |
||
| bool | normal = true, |
||
| bool | texcoord = true |
||
| ) |
Definition at line 2228 of file context.cxx.
| 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 = "" |
||
| ) |
Definition at line 2237 of file context.cxx.
|
protected |
|
protected |
|
protected |
|
protected |
| PrimitiveType cgv::render::shader_program_base::geometry_shader_input_type |
| int cgv::render::shader_program_base::geometry_shader_output_count |
| PrimitiveType cgv::render::shader_program_base::geometry_shader_output_type |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |