|
| Vao (const Vao &)=delete |
|
const AVector< Buffer > & | getBuffers () const noexcept |
|
void | bind () const noexcept |
|
template<typename T > |
void | insert (GLuint index, AArrayView< T > data, const char *key) |
| Creates VBO or modifies existing one. More...
|
|
template<typename T > |
void | insertIfKeyMismatches (GLuint index, AArrayView< T > data, const char *key) |
| Creates VBO or modifies existing one, if the key pointer mismatches. More...
|
|
void | indices (AArrayView< GLuint > data) |
| Uploads VBO indices. More...
|
|
void | drawArrays (GLenum type, GLsizei count) |
|
void | drawElements (GLenum type=GL_TRIANGLES) |
| Draws buffer. Don't forget to upload indices with indices function/. More...
|
|
|
static void | unbind () noexcept |
|
◆ drawElements()
void gl::Vao::drawElements |
( |
GLenum |
type = GL_TRIANGLES | ) |
|
Draws buffer. Don't forget to upload indices with indices
function/.
- Parameters
-
◆ indices()
void gl::Vao::indices |
( |
AArrayView< GLuint > |
data | ) |
|
Uploads VBO indices.
- Parameters
-
◆ insert()
template<typename T >
void gl::Vao::insert |
( |
GLuint |
index, |
|
|
AArrayView< T > |
data, |
|
|
const char * |
key |
|
) |
| |
|
inline |
Creates VBO or modifies existing one.
- Parameters
-
◆ insertIfKeyMismatches()
template<typename T >
void gl::Vao::insertIfKeyMismatches |
( |
GLuint |
index, |
|
|
AArrayView< T > |
data, |
|
|
const char * |
key |
|
) |
| |
|
inline |
Creates VBO or modifies existing one, if the key pointer mismatches.
- Parameters
-
The documentation for this class was generated from the following files:
- aui.views/src/AUI/GL/Vao.h
- aui.views/src/AUI/GL/Vao.cpp