Vertex Array Object (VAO)
More...
#include <vao.hpp>
|
| | vao () |
| | Empty Constructor.
|
| |
| void | init () |
| | Init Constructor.
|
| |
| unsigned int | get_vao () |
| | Get the VAO.
|
| |
| void | bind () |
| | Bind the VAO.
|
| |
| void | unbind () |
| | Unbind the VAO.
|
| |
| void | destroy () |
| | Delete the VAO.
|
| |
| void | set_vertex_data (buffer buffer, unsigned int index, GLint size, GLenum type, GLboolean is_normalized, GLsizei stride, const void *pointer) |
| | Set the vertex data.
|
| |
|
| unsigned int | vao_id |
| | Vertex Array Object (VAO)
|
| |
Vertex Array Object (VAO)
Wrapper for OpenGL Vertex Array Objects
Definition at line 22 of file vao.hpp.
◆ vao()
| brenta::types::vao::vao |
( |
| ) |
|
|
inline |
Empty Constructor.
Does nothing
Definition at line 35 of file vao.hpp.
◆ bind()
Bind the VAO.
Definition at line 26 of file vao.cpp.
◆ destroy()
Delete the VAO.
Definition at line 53 of file vao.cpp.
◆ get_vao()
| unsigned int vao::get_vao |
( |
| ) |
|
Get the VAO.
- Returns
- The VAO
Definition at line 16 of file vao.cpp.
◆ init()
Init Constructor.
Creates a new VAO
Definition at line 11 of file vao.cpp.
◆ set_vertex_data()
| void vao::set_vertex_data |
( |
buffer | buffer, |
|
|
unsigned int | index, |
|
|
GLint | size, |
|
|
GLenum | type, |
|
|
GLboolean | is_normalized, |
|
|
GLsizei | stride, |
|
|
const void * | pointer ) |
Set the vertex data.
- Parameters
-
| buffer | The buffer object |
| index | The index of the vertex attribute |
| size | The number of components per attribute |
| type | The data type of each component |
| is_normalized | Whether the data should be normalized |
| stride | The byte offset between consecutive generic vertex attributes |
| pointer | The offset of the first component of the first generic vertex attribute in the array |
Definition at line 41 of file vao.cpp.
◆ unbind()
Unbind the VAO.
Definition at line 36 of file vao.cpp.
◆ vao_id
| unsigned int brenta::types::vao::vao_id |
Vertex Array Object (VAO)
Definition at line 28 of file vao.hpp.
The documentation for this class was generated from the following files: