#include <opengl3.h>
Public Member Functions | |
| void | bind () |
| void | draw () |
| void | draw_points () |
| void | unbind () |
| void | update_positions (const float3 *vert) |
| vao (const float3 *vert, const float2 *uvs, const float3 *normals, const float3 *tangents, int vert_count, const int3 *indx, int indx_count) | |
| vao (vao &&other) | |
| ~vao () | |
Static Public Member Functions | |
| static std::unique_ptr< vao > | create (const obj_mesh &m) |
Private Member Functions | |
| vao (const vao &other)=delete | |
Private Attributes | |
| uint32_t | _id |
| vbo | _indexes |
| vbo | _normals |
| vbo | _tangents |
| vbo | _uvs |
| int | _vertex_count |
| vbo | _vertexes |
| vao::vao | ( | const float3 * | vert, |
| const float2 * | uvs, | ||
| const float3 * | normals, | ||
| const float3 * | tangents, | ||
| int | vert_count, | ||
| const int3 * | indx, | ||
| int | indx_count | ||
| ) |
Definition at line 93 of file opengl3.cpp.
| vao::~vao | ( | ) |
Definition at line 134 of file opengl3.cpp.
| vao::vao | ( | vao && | other | ) |
Definition at line 123 of file opengl3.cpp.
|
privatedelete |
| void vao::bind | ( | ) |
Definition at line 139 of file opengl3.cpp.
Definition at line 112 of file opengl3.cpp.
| void vao::draw | ( | ) |
Definition at line 173 of file opengl3.cpp.
| void vao::draw_points | ( | ) |
Definition at line 150 of file opengl3.cpp.
| void vao::unbind | ( | ) |
Definition at line 145 of file opengl3.cpp.
Definition at line 198 of file opengl3.cpp.