#include <opengl3.h>
Public Member Functions | |
void | bind () |
void | draw_indexed_triangles () |
void | draw_points () |
void | draw_triangles () |
uint32_t | size () const |
void | unbind () |
void | upload (int attribute, const float *xyz, int size, int count, bool dynamic=false) |
void | upload (const int3 *indx, int count) |
vbo (vbo_type type=vbo_type::array_buffer) | |
vbo (vbo &&other) | |
~vbo () | |
Private Member Functions | |
vbo (const vbo &other)=delete | |
Static Private Member Functions | |
static int | convert_type (vbo_type type) |
Private Attributes | |
uint32_t | _id |
uint32_t | _size = 0 |
vbo_type | _type |
vbo::vbo | ( | vbo_type | type = vbo_type::array_buffer | ) |
Definition at line 20 of file opengl3.cpp.
vbo::vbo | ( | vbo && | other | ) |
Definition at line 82 of file opengl3.cpp.
vbo::~vbo | ( | ) |
Definition at line 88 of file opengl3.cpp.
|
privatedelete |
void vbo::bind | ( | ) |
Definition at line 26 of file opengl3.cpp.
|
staticprivate |
Definition at line 11 of file opengl3.cpp.
void vbo::draw_indexed_triangles | ( | ) |
Definition at line 75 of file opengl3.cpp.
void vbo::draw_points | ( | ) |
Definition at line 57 of file opengl3.cpp.
void vbo::draw_triangles | ( | ) |
Definition at line 66 of file opengl3.cpp.
void vbo::unbind | ( | ) |
Definition at line 31 of file opengl3.cpp.
void vbo::upload | ( | int | attribute, |
const float * | xyz, | ||
int | size, | ||
int | count, | ||
bool | dynamic = false |
||
) |
Definition at line 36 of file opengl3.cpp.
Definition at line 48 of file opengl3.cpp.