globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
globjects::VertexAttributeBinding Class Reference

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

Inheritance diagram for globjects::VertexAttributeBinding:
globjects::Referenced globjects::HeapOnly

Public Member Functions

 VertexAttributeBinding (VertexArray *vao, const gl::GLint bindingIndex)
 
const VertexArrayvao () const
 
VertexArrayvao ()
 
void setDivisor (gl::GLint divisor)
 
void setAttribute (gl::GLint attributeIndex)
 
gl::GLint attributeIndex () const
 
gl::GLint bindingIndex () const
 
const Bufferbuffer () const
 
void setBuffer (const Buffer *vbo, gl::GLint baseoffset, gl::GLint stride)
 
void setFormat (gl::GLint size, gl::GLenum type, gl::GLboolean normalized=gl::GL_FALSE, gl::GLuint relativeoffset=0)
 
void setIFormat (gl::GLint size, gl::GLenum type, gl::GLuint relativeoffset=0)
 
void setLFormat (gl::GLint size, gl::GLenum type, gl::GLuint relativeoffset=0)
 
void setValue (gl::GLboolean value)
 
void setValue (gl::GLbyte value)
 
void setValue (gl::GLshort value)
 
void setValue (gl::GLint value)
 
void setValue (gl::GLint64 value)
 
void setValue (gl::GLfloat value)
 
void setValue (gl::GLdouble value)
 
void setValue (const glm::bvec2 &value)
 
void setValue (const glm::ivec2 &value)
 
void setValue (const glm::vec2 &value)
 
void setValue (const glm::dvec2 &value)
 
void setValue (const glm::bvec3 &value)
 
void setValue (const glm::ivec3 &value)
 
void setValue (const glm::vec3 &value)
 
void setValue (const glm::dvec3 &value)
 
void setValue (const glm::bvec4 &value)
 
void setValue (const glm::ivec4 &value)
 
void setValue (const glm::vec4 &value)
 
void setValue (const glm::dvec4 &value)
 
void setValue (const glm::mat2 &value)
 
void setValue (const glm::mat3 &value)
 
void setValue (const glm::mat4 &value)
 
void setValue (const glm::dmat2 &value)
 
void setValue (const glm::dmat3 &value)
 
void setValue (const glm::dmat4 &value)
 
- 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
 

Protected Member Functions

virtual ~VertexAttributeBinding ()
 
- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 

Protected Attributes

VertexArraym_vao
 
gl::GLint m_bindingIndex
 
gl::GLint m_attributeIndex
 
const Bufferm_vbo
 
void * m_bindingData
 

Friends

class AbstractVertexAttributeBindingImplementation
 

Constructor & Destructor Documentation

globjects::VertexAttributeBinding::VertexAttributeBinding ( VertexArray vao,
const gl::GLint  bindingIndex 
)
virtual globjects::VertexAttributeBinding::~VertexAttributeBinding ( )
protectedvirtual

Member Function Documentation

const VertexArray* globjects::VertexAttributeBinding::vao ( ) const
VertexArray* globjects::VertexAttributeBinding::vao ( )
void globjects::VertexAttributeBinding::setDivisor ( gl::GLint  divisor)
void globjects::VertexAttributeBinding::setAttribute ( gl::GLint  attributeIndex)
gl::GLint globjects::VertexAttributeBinding::attributeIndex ( ) const
gl::GLint globjects::VertexAttributeBinding::bindingIndex ( ) const
const Buffer* globjects::VertexAttributeBinding::buffer ( ) const

For VertexAttribPointer

void globjects::VertexAttributeBinding::setBuffer ( const Buffer vbo,
gl::GLint  baseoffset,
gl::GLint  stride 
)
void globjects::VertexAttributeBinding::setFormat ( gl::GLint  size,
gl::GLenum  type,
gl::GLboolean  normalized = gl::GL_FALSE,
gl::GLuint  relativeoffset = 0 
)
void globjects::VertexAttributeBinding::setIFormat ( gl::GLint  size,
gl::GLenum  type,
gl::GLuint  relativeoffset = 0 
)
void globjects::VertexAttributeBinding::setLFormat ( gl::GLint  size,
gl::GLenum  type,
gl::GLuint  relativeoffset = 0 
)
void globjects::VertexAttributeBinding::setValue ( gl::GLboolean  value)

For VertexAttrib

void globjects::VertexAttributeBinding::setValue ( gl::GLbyte  value)
void globjects::VertexAttributeBinding::setValue ( gl::GLshort  value)
void globjects::VertexAttributeBinding::setValue ( gl::GLint  value)
void globjects::VertexAttributeBinding::setValue ( gl::GLint64  value)
void globjects::VertexAttributeBinding::setValue ( gl::GLfloat  value)
void globjects::VertexAttributeBinding::setValue ( gl::GLdouble  value)
void globjects::VertexAttributeBinding::setValue ( const glm::bvec2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::ivec2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::vec2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dvec2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::bvec3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::ivec3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::vec3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dvec3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::bvec4 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::ivec4 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::vec4 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dvec4 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::mat2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::mat3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::mat4 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dmat2 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dmat3 &  value)
void globjects::VertexAttributeBinding::setValue ( const glm::dmat4 &  value)

Friends And Related Function Documentation

friend class AbstractVertexAttributeBindingImplementation
friend

Member Data Documentation

VertexArray* globjects::VertexAttributeBinding::m_vao
protected
gl::GLint globjects::VertexAttributeBinding::m_bindingIndex
protected
gl::GLint globjects::VertexAttributeBinding::m_attributeIndex
protected
const Buffer* globjects::VertexAttributeBinding::m_vbo
protected
void* globjects::VertexAttributeBinding::m_bindingData
mutableprotected

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