| 
    cgv
    
   | 
 
base interface for shader programs More...
#include <context.h>
  
Public Member Functions | |
| shader_program_base () | |
| initializes 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 context * | ctx_ptr | 
| keep pointer to my context  | |
| std::string | last_error | 
| a string that contains the last error  | |
base interface for shader programs
      
  | 
  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.