qxLib
Public Member Functions | List of all members
qx::base_vao Class Reference

Base VAO class. More...

#include <vao.h>

Inheritance diagram for qx::base_vao:
qx::IBuffer

Public Member Functions

QX_DECL_IBUFFER void EnableVertexArrtibArray (size_t nIndex)
 Enable a generic vertex attribute array. More...
 
void DisableVertexArrtibArray (size_t nIndex)
 Disable a generic vertex attribute array. More...
 
void VertexAttribPointer (size_t nIndex, GLint nSize, GLenum eType, GLboolean bNormalized, GLsizei nStride, size_t nOffset)
 Define an array of generic vertex attribute data. More...
 

Detailed Description

Base VAO class.

~

Author
Khrapov
Date
19.01.2020

Definition at line 26 of file vao.h.

Member Function Documentation

◆ DisableVertexArrtibArray()

void qx::base_vao::DisableVertexArrtibArray ( size_t  nIndex)
inline

Disable a generic vertex attribute array.

Parameters
nIndex- array index in VAO

Definition at line 52 of file vao.inl.

◆ EnableVertexArrtibArray()

void qx::base_vao::EnableVertexArrtibArray ( size_t  nIndex)
inline

Enable a generic vertex attribute array.

Parameters
nIndex- array index in VAO

Definition at line 47 of file vao.inl.

◆ VertexAttribPointer()

void qx::base_vao::VertexAttribPointer ( size_t  nIndex,
GLint  nSize,
GLenum  eType,
GLboolean  bNormalized,
GLsizei  nStride,
size_t  nOffset 
)
inline

Define an array of generic vertex attribute data.

Parameters
nIndex- index of the generic vertex attribute to be modified
nSize- number of components per generic vertex attribute. Must be 1, 2, 3, 4
eType- data type of each component in the array
bNormalized- specifies whether fixed-point data values should be normalized or converted directly as fixed-point values
nStride- byte offset between consecutive generic vertex attributes
nOffset- offset of the first component of the first generic vertex attribute in the array in the data store of the buffer currently bound to the GL_ARRAY_BUFFER target

Definition at line 57 of file vao.inl.


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