Vertex Array Object (VAO)
More...
#include <vao.hpp>
|
| | vao () |
| | Default constructor, does nothing.
|
| |
|
constexpr | vao (const vao &)=delete |
| |
|
constexpr vao & | operator= (const vao &)=delete |
| |
| constexpr | vao (vao &&other) noexcept |
| |
| constexpr vao & | operator= (vao &&other) noexcept |
| |
| void | init () |
| |
| void | destroy () |
| |
| void | bind () const |
| |
| void | unbind () const |
| |
| unsigned int | get_id () const |
| |
| 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.
|
| |
Vertex Array Object (VAO)
Wrapper for OpenGL Vertex Array Objects
Definition at line 22 of file vao.hpp.
◆ vao() [1/2]
Default constructor, does nothing.
Definition at line 11 of file vao.cpp.
◆ vao() [2/2]
| constexpr brenta::types::vao::vao |
( |
vao && |
other | ) |
|
|
inlineconstexprnoexcept |
◆ ~vao()
◆ bind()
◆ destroy()
◆ get_id()
| unsigned int vao::get_id |
( |
| ) |
const |
◆ init()
◆ operator=()
| constexpr vao & brenta::types::vao::operator= |
( |
vao && |
other | ) |
|
|
inlineconstexprnoexcept |
◆ 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 56 of file vao.cpp.
◆ unbind()
| void vao::unbind |
( |
| ) |
const |
◆ vao_id
| unsigned int brenta::types::vao::vao_id |
The documentation for this class was generated from the following files: