globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.

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::Referenced globjects::Changeable globjects::ChangeListener globjects::HeapOnly

Public Member Functions

 ProgramBinary (gl::GLenum binaryFormat, const std::vector< char > &binaryData)
 
 ProgramBinary (gl::GLenum binaryFormat, AbstractStringSource *dataSource)
 
gl::GLenum format () const
 
const void * data () const
 
gl::GLsizei length () const
 
virtual void notifyChanged (const Changeable *sender) override
 
- Public Member Functions inherited from globjects::Referenced
 Referenced ()
 
void ref () const
 
void unref () const
 
int refCounter () const
 
- Public Member Functions inherited from globjects::HeapOnly
 HeapOnly ()
 
void destroy () const
 
- Public Member Functions inherited from globjects::Changeable
void changed () const
 
void registerListener (ChangeListener *listener)
 
void deregisterListener (ChangeListener *listener)
 

Protected Member Functions

virtual ~ProgramBinary ()
 
void validate () const
 
- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 
- Protected Member Functions inherited from globjects::ChangeListener
virtual ~ChangeListener ()
 

Protected Attributes

gl::GLenum m_binaryFormat
 
ref_ptr< AbstractStringSourcem_dataSource
 
bool m_valid
 
std::vector< unsigned char > m_binaryData
 

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< char > &  binaryData 
)
globjects::ProgramBinary::ProgramBinary ( gl::GLenum  binaryFormat,
AbstractStringSource dataSource 
)
virtual globjects::ProgramBinary::~ProgramBinary ( )
protectedvirtual

Member Function Documentation

gl::GLenum globjects::ProgramBinary::format ( ) const
const void* globjects::ProgramBinary::data ( ) const
gl::GLsizei globjects::ProgramBinary::length ( ) const
virtual void globjects::ProgramBinary::notifyChanged ( const Changeable sender)
overridevirtual

Reimplemented from globjects::ChangeListener.

void globjects::ProgramBinary::validate ( ) const
protected

Member Data Documentation

gl::GLenum globjects::ProgramBinary::m_binaryFormat
protected
ref_ptr<AbstractStringSource> globjects::ProgramBinary::m_dataSource
protected
bool globjects::ProgramBinary::m_valid
mutableprotected
std::vector<unsigned char> globjects::ProgramBinary::m_binaryData
mutableprotected

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