globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
#include <globjects/include/globjects/VertexAttributeBinding.h>
Public Member Functions | |
VertexAttributeBinding (VertexArray *vao, const gl::GLint bindingIndex) | |
virtual | ~VertexAttributeBinding () |
const VertexArray * | vao () const |
VertexArray * | vao () |
void | setDivisor (gl::GLint divisor) |
void | setAttribute (gl::GLint attributeIndex) |
gl::GLint | attributeIndex () const |
gl::GLint | bindingIndex () const |
const Buffer * | buffer () 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) |
Protected Attributes | |
VertexArray * | m_vao |
gl::GLint | m_bindingIndex |
gl::GLint | m_attributeIndex |
const Buffer * | m_vbo |
void * | m_bindingData |
Friends | |
class | AbstractVertexAttributeBindingImplementation |
Additional Inherited Members | |
Static Public Member Functions inherited from globjects::Instantiator< VertexAttributeBinding > | |
static std::unique_ptr< VertexAttributeBinding > | create (Args &&...args) |
static std::unique_ptr< VertexAttributeBinding > | fromId (gl::GLuint id, Args &&...args) |
globjects::VertexAttributeBinding::VertexAttributeBinding | ( | VertexArray * | vao, |
const gl::GLint | bindingIndex | ||
) |
|
virtual |
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 | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |