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 cgv::render::uniform_buffer< cgv::render::device_color_scale_arguments > cgv::render::uniform_buffer< T >

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

Detailed Description

base interface for all render components

Definition at line 356 of file context.h.

Constructor & Destructor Documentation

◆ render_component()

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

initialize members

Definition at line 2222 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 376 of file context.h.

References put_id(), and put_id_void().

Referenced by cgv::render::gl::print_program_ressources(), and put_id().

◆ 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 2237 of file context.cxx.

References ctx_ptr.

Referenced by put_id().

Member Data Documentation

◆ ctx_ptr

◆ handle

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

Definition at line 359 of file context.h.

◆ internal_format

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

Definition at line 360 of file context.h.

◆ last_error

◆ user_data

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

Definition at line 361 of file context.h.


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