cgv
cgv::render::texture_base Class Reference

base interface for a texture More...

#include <context.h>

Inheritance diagram for cgv::render::texture_base:
cgv::render::render_component cgv::render::texture

Public Member Functions

 texture_base (TextureType _tt=TT_UNDEF)
 initialize members
 
virtual bool is_created () const
 return whether component has been created
 
void put_id_void (void *ptr) const
 
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

const contextctx_ptr
 keep pointer to my context
 
std::string last_error
 a string that contains the last error
 

Detailed Description

base interface for a texture

Member Function Documentation

◆ put_id_void()

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

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.


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