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

#include <camera-shader.h>

Public Member Functions

void begin ()
 
 camera_shader ()
 
void end ()
 
void set_mvp (const rs2::matrix4 &model, const rs2::matrix4 &view, const rs2::matrix4 &projection)
 
void set_opacity (float opacity)
 

Protected Attributes

std::unique_ptr< rs2::shader_program_shader
 

Private Member Functions

void init ()
 

Private Attributes

uint32_t _camera_matrix_location
 
uint32_t _opacity_location
 
uint32_t _projection_matrix_location
 
uint32_t _transformation_matrix_location
 

Detailed Description

Definition at line 14 of file camera-shader.h.

Constructor & Destructor Documentation

librealsense::gl::camera_shader::camera_shader ( )

Definition at line 48 of file camera-shader.cpp.

Member Function Documentation

void librealsense::gl::camera_shader::begin ( )

Definition at line 67 of file camera-shader.cpp.

void librealsense::gl::camera_shader::end ( )

Definition at line 68 of file camera-shader.cpp.

void librealsense::gl::camera_shader::init ( )
private

Definition at line 57 of file camera-shader.cpp.

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

Definition at line 70 of file camera-shader.cpp.

void librealsense::gl::camera_shader::set_opacity ( float  opacity)

Definition at line 79 of file camera-shader.cpp.

Member Data Documentation

uint32_t librealsense::gl::camera_shader::_camera_matrix_location
private

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

uint32_t librealsense::gl::camera_shader::_opacity_location
private

Definition at line 36 of file camera-shader.h.

uint32_t librealsense::gl::camera_shader::_projection_matrix_location
private

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

std::unique_ptr<rs2::shader_program> librealsense::gl::camera_shader::_shader
protected

Definition at line 28 of file camera-shader.h.

uint32_t librealsense::gl::camera_shader::_transformation_matrix_location
private

Definition at line 33 of file camera-shader.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:39