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

#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
 

Detailed Description

Definition at line 104 of file opengl3.h.

Constructor & Destructor Documentation

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.

rs2::vbo::vbo ( const vbo other)
privatedelete

Member Function Documentation

void vbo::bind ( )

Definition at line 26 of file opengl3.cpp.

int vbo::convert_type ( vbo_type  type)
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.

uint32_t rs2::vbo::size ( ) const
inline

Definition at line 121 of file opengl3.h.

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.

void vbo::upload ( const int3 indx,
int  count 
)

Definition at line 48 of file opengl3.cpp.

Member Data Documentation

uint32_t rs2::vbo::_id
private

Definition at line 126 of file opengl3.h.

uint32_t rs2::vbo::_size = 0
private

Definition at line 127 of file opengl3.h.

vbo_type rs2::vbo::_type
private

Definition at line 128 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