cgv
|
base interface for all render components More...
#include <context.h>
Public Member Functions | |
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 | |
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 | |
cgv::render::render_component::render_component | ( | ) |
|
virtual |
return whether component has been created
Reimplemented in cgv::render::render_buffer, and cgv::render::vertex_buffer.
Definition at line 2046 of file context.cxx.
Referenced by cgv::render::shader_program::build_dir(), cgv::render::shader_program::build_files(), cgv::render::shader_program::build_program(), cgv::render::texture::create(), cgv::render::texture::create(), cgv::render::gl::gl_transparent_renderer::create_and_attach_texture(), cgv::render::texture::create_from_buffer(), cgv::render::texture::create_mipmaps(), vr_test::draw(), cgv::render::attribute_array_binding::enable(), cgv::render::shader_program::enable(), cgv::render::renderer::enable(), vr_test::finish_draw(), cgv::render::volume_renderer::init(), vr_test::init_frame(), cgv::render::a_buffer::init_frame(), cgv::render::gl::gl_depth_peeler::init_frame(), cgv::render::gl::gl_transparent_renderer::init_frame(), cgv::render::volume_renderer::init_noise_texture(), cgv::render::texture::replace(), cgv::render::texture::replace(), cgv::render::texture::replace(), cgv::render::texture::replace_from_buffer(), cgv::render::texture::replace_from_buffer(), cgv::render::texture::write_to_file(), and cgv::render::attribute_array_manager::~attribute_array_manager().
|
inline |
cast the refence to rendering api specific representation of component id to the specified type
Definition at line 319 of file context.h.
Referenced by cgv::render::gl::print_program_ressources().
copy the rendering api specific id the component to the memory location of the given pointer.
For opengl this the passed pointer should be of type GLint or GLuint.
Definition at line 2052 of file context.cxx.
References ctx_ptr.
const context* cgv::render::render_component::ctx_ptr |
keep pointer to my context
Definition at line 307 of file context.h.
Referenced by cgv::render::shader_program::create(), cgv::render::frame_buffer::create(), cgv::render::render_buffer::create(), put_id_void(), render_component(), cgv::render::shader_code::set_code(), cgv::render::attribute_array_binding::~attribute_array_binding(), cgv::render::attribute_array_manager::~attribute_array_manager(), cgv::render::frame_buffer::~frame_buffer(), cgv::render::render_buffer::~render_buffer(), cgv::render::shader_code::~shader_code(), cgv::render::shader_program::~shader_program(), cgv::render::texture::~texture(), and cgv::render::vertex_buffer::~vertex_buffer().
|
mutable |
a string that contains the last error
Definition at line 309 of file context.h.
Referenced by cgv::render::shader_program::attach_code(), cgv::render::shader_program::attach_code(), cgv::render::shader_program::attach_file(), cgv::render::shader_program::attach_files(), cgv::render::shader_program::attach_program(), cgv::render::texture::bind_as_image(), cgv::render::shader_program::build_program(), cgv::render::texture::create_from_image(), cgv::render::texture::create_mipmaps(), cgv::render::shader_program::detach_code(), cgv::render::texture::enable(), cgv::render::shader_code::get_last_error(), cgv::render::shader_program::link(), cgv::render::shader_code::read_and_compile(), cgv::render::shader_code::read_code(), cgv::render::shader_code::read_code_file(), cgv::render::texture::replace(), cgv::render::texture::replace(), cgv::render::texture::replace(), cgv::render::texture::replace_from_buffer(), and cgv::render::texture::replace_from_buffer().