globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::ProgramBinary Class Reference

The ProgramBinary class is used for directly setting binary sources for a Program. More...

#include <globjects/include/globjects/ProgramBinary.h>

Inheritance diagram for globjects::ProgramBinary:
globjects::Changeable globjects::Instantiator< ProgramBinary >

Public Member Functions

 ProgramBinary (gl::GLenum binaryFormat, const std::vector< unsigned char > &data)
 
virtual ~ProgramBinary ()
 
gl::GLenum format () const
 
const void * data () const
 
gl::GLsizei length () const
 
- Public Member Functions inherited from globjects::Changeable
 Changeable ()
 
virtual ~Changeable ()
 
void changed () const
 
void registerListener (ChangeListener *listener)
 
void deregisterListener (ChangeListener *listener)
 

Protected Attributes

gl::GLenum m_binaryFormat
 
std::vector< unsigned char > m_binaryData
 
- Protected Attributes inherited from globjects::Changeable
std::set< ChangeListener * > m_listeners
 

Additional Inherited Members

- Static Public Member Functions inherited from globjects::Instantiator< ProgramBinary >
static std::unique_ptr< ProgramBinarycreate (Args &&...args)
 
static std::unique_ptr< ProgramBinaryfromId (gl::GLuint id, Args &&...args)
 

Detailed Description

The ProgramBinary class is used for directly setting binary sources for a Program.

See also
Program
http://www.opengl.org/registry/specs/ARB/get_program_binary.txt

Constructor & Destructor Documentation

globjects::ProgramBinary::ProgramBinary ( gl::GLenum  binaryFormat,
const std::vector< unsigned char > &  data 
)
virtual globjects::ProgramBinary::~ProgramBinary ( )
virtual

Member Function Documentation

gl::GLenum globjects::ProgramBinary::format ( ) const
const void* globjects::ProgramBinary::data ( ) const
gl::GLsizei globjects::ProgramBinary::length ( ) const

Member Data Documentation

gl::GLenum globjects::ProgramBinary::m_binaryFormat
protected
std::vector<unsigned char> globjects::ProgramBinary::m_binaryData
protected

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