globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
The ProgramBinary class is used for directly setting binary sources for a Program. More...
#include <globjects/include/globjects/ProgramBinary.h>
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< ProgramBinary > | create (Args &&...args) |
static std::unique_ptr< ProgramBinary > | fromId (gl::GLuint id, Args &&...args) |
The ProgramBinary class is used for directly setting binary sources for a Program.
globjects::ProgramBinary::ProgramBinary | ( | gl::GLenum | binaryFormat, |
const std::vector< unsigned char > & | data | ||
) |
|
virtual |
gl::GLenum globjects::ProgramBinary::format | ( | ) | const |
const void* globjects::ProgramBinary::data | ( | ) | const |
gl::GLsizei globjects::ProgramBinary::length | ( | ) | const |
|
protected |
|
protected |