Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
librealsense::gl::pointcloud_shader Class Reference

#include <pc-shader.h>

Public Member Functions

void begin ()
void end ()
int geometry_slot () const
 pointcloud_shader (const char *vertex_shader, const char *fragment_shader)
void set_image_size (int width, int height)
void set_min_delta_z (float min_delta_z)
void set_mvp (const rs2::matrix4 &model, const rs2::matrix4 &view, const rs2::matrix4 &projection)
void set_picked_id (float pid)
void set_shaded (bool shaded)
int texture_slot () const
int uvs_slot () const

Protected Member Functions

 pointcloud_shader (std::unique_ptr< rs2::shader_program > shader)

Protected Attributes

std::unique_ptr< rs2::shader_program_shader

Private Member Functions

void init ()

Private Attributes

uint32_t _camera_matrix_location
uint32_t _height_location
uint32_t _min_delta_z_location
uint32_t _picked_id_location
uint32_t _projection_matrix_location
uint32_t _shaded_location
uint32_t _transformation_matrix_location
uint32_t _width_location

Detailed Description

Definition at line 20 of file pc-shader.h.

Constructor & Destructor Documentation

librealsense::gl::pointcloud_shader::pointcloud_shader ( const char *  vertex_shader,
const char *  fragment_shader 

Definition at line 274 of file pc-shader.cpp.

librealsense::gl::pointcloud_shader::pointcloud_shader ( std::unique_ptr< rs2::shader_program shader)

Definition at line 268 of file pc-shader.cpp.

Member Function Documentation

void librealsense::gl::pointcloud_shader::begin ( )

Definition at line 309 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::end ( )

Definition at line 310 of file pc-shader.cpp.

int librealsense::gl::pointcloud_shader::geometry_slot ( ) const

Definition at line 34 of file pc-shader.h.

void librealsense::gl::pointcloud_shader::init ( )

Definition at line 285 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::set_image_size ( int  width,
int  height 

Definition at line 321 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::set_min_delta_z ( float  min_delta_z)

Definition at line 337 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::set_mvp ( const rs2::matrix4 model,
const rs2::matrix4 view,
const rs2::matrix4 projection 

Definition at line 312 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::set_picked_id ( float  pid)

Definition at line 327 of file pc-shader.cpp.

void librealsense::gl::pointcloud_shader::set_shaded ( bool  shaded)

Definition at line 332 of file pc-shader.cpp.

int librealsense::gl::pointcloud_shader::texture_slot ( ) const

Definition at line 33 of file pc-shader.h.

int librealsense::gl::pointcloud_shader::uvs_slot ( ) const

Definition at line 35 of file pc-shader.h.

Member Data Documentation

uint32_t librealsense::gl::pointcloud_shader::_camera_matrix_location

Definition at line 51 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_height_location

Definition at line 53 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_min_delta_z_location

Definition at line 54 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_picked_id_location

Definition at line 55 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_projection_matrix_location

Definition at line 50 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_shaded_location

Definition at line 56 of file pc-shader.h.

std::unique_ptr<rs2::shader_program> librealsense::gl::pointcloud_shader::_shader

Definition at line 44 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_transformation_matrix_location

Definition at line 49 of file pc-shader.h.

uint32_t librealsense::gl::pointcloud_shader::_width_location

Definition at line 53 of file pc-shader.h.

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

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