![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <opengl_utils.hpp>

Public Member Functions | |
| Model ()=default | |
| Model (const Model &)=delete | |
| Model (Model &&o) | |
| ~Model () | |
| GLuint | get_vao () const |
| Model & | operator= (const Model &)=delete |
| Model & | operator= (Model &&o) |
| void | render () |
Static Public Member Functions | |
| static Model | get_quad () |
| static Model | get_sphere () |
Private Member Functions | |
| void | swap (Model &o) |
Private Attributes | |
| GLuint | elem_buf = 0 |
| GLsizei | indices_num = 0 |
| GLuint | vao = 0 |
| GLuint | vbo = 0 |
RAII wrapper for OpenGL VBO and VAO containing a 3D model
Definition at line 102 of file opengl_utils.hpp.
|
default |
|
delete |
|
inline |
Definition at line 106 of file opengl_utils.hpp.
References swap().

| Model::~Model | ( | ) |
Definition at line 133 of file opengl_utils.cpp.
|
static |
Returns an instance containing a plane formed by 2 triangles
Definition at line 198 of file opengl_utils.cpp.
References indices_num, rectangle, vao, and vbo.
Referenced by FlatVideoScene::init().
|
static |
Returns an instance containing a 3D sphere
Definition at line 155 of file opengl_utils.cpp.
References elem_buf, gen_sphere_indices(), gen_sphere_vertices(), indices_num, vao, and vbo.

|
inline |
Return the underlying OpenGL VAO id
Definition at line 114 of file opengl_utils.hpp.
References vao.
Definition at line 108 of file opengl_utils.hpp.
References swap().

| void Model::render | ( | ) |
Renders the contained model by calling glDrawElements or glDrawArrays
Definition at line 142 of file opengl_utils.cpp.
References elem_buf, indices_num, PROFILE_FUNC, and vao.
Referenced by FlatVideoScene::render(), and PanoramaScene::render().
|
inlineprivate |
Definition at line 132 of file opengl_utils.hpp.
References elem_buf, indices_num, vao, and vbo.
Referenced by Model(), and operator=().
|
private |
Definition at line 140 of file opengl_utils.hpp.
Referenced by ~Model(), get_sphere(), render(), and swap().
|
private |
Definition at line 141 of file opengl_utils.hpp.
Referenced by get_quad(), get_sphere(), render(), and swap().
|
private |
Definition at line 138 of file opengl_utils.hpp.
Referenced by ~Model(), get_quad(), get_sphere(), get_vao(), render(), and swap().
|
private |
Definition at line 139 of file opengl_utils.hpp.
Referenced by ~Model(), get_quad(), get_sphere(), and swap().