Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::vao Class Reference

#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< vaocreate (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
 

Detailed Description

Definition at line 137 of file opengl3.h.

Constructor & Destructor Documentation

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.

rs2::vao::vao ( const vao other)
privatedelete

Member Function Documentation

void vao::bind ( )

Definition at line 139 of file opengl3.cpp.

std::unique_ptr< vao > vao::create ( const obj_mesh m)
static

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.

void vao::update_positions ( const float3 vert)

Definition at line 198 of file opengl3.cpp.

Member Data Documentation

uint32_t rs2::vao::_id
private

Definition at line 158 of file opengl3.h.

vbo rs2::vao::_indexes
private

Definition at line 160 of file opengl3.h.

vbo rs2::vao::_normals
private

Definition at line 160 of file opengl3.h.

vbo rs2::vao::_tangents
private

Definition at line 160 of file opengl3.h.

vbo rs2::vao::_uvs
private

Definition at line 160 of file opengl3.h.

int rs2::vao::_vertex_count
private

Definition at line 159 of file opengl3.h.

vbo rs2::vao::_vertexes
private

Definition at line 160 of file opengl3.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41