cgv
Loading...
Searching...
No Matches
cgv::render::render_component Class Reference

base interface for all render components More...

#include <context.h>

Inheritance diagram for cgv::render::render_component:
cgv::render::attribute_array_binding_base cgv::render::frame_buffer_base cgv::render::render_buffer_base cgv::render::shader_code cgv::render::shader_program_base cgv::render::texture_base cgv::render::vertex_buffer_base cgv::render::attribute_array_binding cgv::render::frame_buffer cgv::render::render_buffer cgv::render::shader_program cgv::render::texture cgv::render::vertex_buffer

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 contextctx_ptr
 keep pointer to my context
 
std::string last_error
 a string that contains the last error
 

Detailed Description

base interface for all render components

Definition at line 300 of file context.h.

Constructor & Destructor Documentation

◆ render_component()

cgv::render::render_component::render_component ( )

initialize members

Definition at line 2037 of file context.cxx.

References ctx_ptr.

Member Function Documentation

◆ is_created()

◆ put_id()

template<typename T >
void cgv::render::render_component::put_id ( T &  id) const
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().

◆ put_id_void()

void cgv::render::render_component::put_id_void ( void ptr) const

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.

Member Data Documentation

◆ ctx_ptr

◆ handle

void* cgv::render::render_component::handle

Definition at line 303 of file context.h.

◆ internal_format

void* cgv::render::render_component::internal_format

Definition at line 304 of file context.h.

◆ last_error

◆ user_data

void* cgv::render::render_component::user_data

Definition at line 305 of file context.h.


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