4 #ifndef LIBREALSENSE_RS2_PROCESSING_GL_HPP 5 #define LIBREALSENSE_RS2_PROCESSING_GL_HPP 36 &glfwMakeContextCurrent,
37 &glfwGetCurrentContext,
78 &glfwMakeContextCurrent,
79 &glfwGetCurrentContext,
126 std::shared_ptr<rs2_processing_block> init()
129 auto block = std::shared_ptr<rs2_processing_block>(
151 std::shared_ptr<rs2_processing_block> init()
154 auto block = std::shared_ptr<rs2_processing_block>(
176 std::shared_ptr<rs2_processing_block> init()
179 auto block = std::shared_ptr<rs2_processing_block>(
197 static std::shared_ptr<rs2_processing_block> init()
200 auto block = std::shared_ptr<rs2_processing_block>(
219 std::shared_ptr<rs2_processing_block> init()
222 auto block = std::shared_ptr<rs2_processing_block>(
237 std::shared_ptr<rs2_processing_block> init()
240 auto block = std::shared_ptr<rs2_processing_block>(
267 std::shared_ptr<rs2_processing_block> init()
271 auto block = std::shared_ptr<rs2_processing_block>(
306 std::shared_ptr<rs2_processing_block> init()
310 auto block = std::shared_ptr<rs2_processing_block>(
361 std::shared_ptr<rs2_processing_block> init()
365 auto block = std::shared_ptr<rs2_processing_block>(
384 std::shared_ptr<rs2_processing_block> init(
rs2_stream to)
388 auto block = std::shared_ptr<rs2_processing_block>(
399 #endif // LIBREALSENSE_RS2_PROCESSING_GL_HPP void init_processing(bool use_glsl=true)
Definition: rs_processing_gl.hpp:54
Definition: rs_option.h:138
rs2_processing_block * rs2_gl_create_colorizer(int api_version, rs2_error **error)
void rs2_gl_shutdown_processing(int api_version, rs2_error **error)
Definition: rs_frame.hpp:369
#define RS2_API_VERSION
Definition: rs.h:44
Definition: rs_processing_gl.hpp:120
static const auto OPTION_PICKED_ID
Definition: rs_processing_gl.hpp:348
static const auto OPTION_ORIGIN_PICKED
Definition: rs_processing_gl.hpp:350
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:26
static const auto OPTION_NORMAL_X
Definition: rs_processing_gl.hpp:352
static const auto OPTION_MOUSE_Y
Definition: rs_processing_gl.hpp:341
void rs2_gl_init_rendering_glfw(int api_version, glfw_binding bindings, int use_glsl, rs2_error **error)
Definition: rs_processing.hpp:499
static const auto OPTION_NORMAL_Y
Definition: rs_processing_gl.hpp:353
Definition: rs_processing_gl.hpp:376
rs2_processing_block * rs2_gl_create_pointcloud_renderer(int api_version, rs2_error **error)
static const auto OPTION_MOUSE_Y
Definition: rs_processing_gl.hpp:299
pointcloud(rs2_stream stream, int index=0)
Definition: rs_processing_gl.hpp:257
void rs2_gl_shutdown_rendering(int api_version, rs2_error **error)
static const auto OPTION_NORMAL_Z
Definition: rs_processing_gl.hpp:354
Definition: rs_processing_gl.h:58
Definition: rs_context.hpp:11
static const auto OPTION_PICKED_Y
Definition: rs_processing_gl.hpp:345
Definition: rs_processing.hpp:528
int rs2_gl_is_frame_extendable_to(const rs2_frame *f, rs2_gl_extension extension_type, rs2_error **error)
Definition: rs_processing_gl.hpp:145
gpu_frame(const frame &f)
Definition: rs_processing_gl.hpp:96
rs2_processing_block * rs2_gl_create_yuy_decoder(int api_version, rs2_error **error)
void shutdown_processing()
Definition: rs_processing_gl.hpp:61
Definition: rs_context.hpp:96
Definition: rs_processing_gl.hpp:252
void reset()
Definition: rs_frame.hpp:637
void set_matrix(rs2_gl_matrix_type type, float *m4x4)
Definition: rs_processing_gl.hpp:291
Definition: rs_processing_gl.hpp:213
rs2_processing_block * rs2_gl_create_m420_decoder(int api_version, rs2_error **error)
Definition: rs_processing_gl.hpp:93
static const auto OPTION_PICKED_Z
Definition: rs_processing_gl.hpp:346
y411_decoder()
Definition: rs_processing_gl.hpp:194
Exposes RealSense processing-block functionality for GPU for C compilers.
void rs2_gl_set_matrix(rs2_processing_block *block, rs2_gl_matrix_type type, float *m4x4, rs2_error **error)
void set_matrix(rs2_gl_matrix_type type, float *m4x4)
Definition: rs_processing_gl.hpp:330
Definition: rs_processing_gl.hpp:191
uploader()
Definition: rs_processing_gl.hpp:234
pointcloud()
Definition: rs_processing_gl.hpp:255
void shutdown_rendering()
Definition: rs_processing_gl.hpp:19
Definition: rs_processing.hpp:560
align(rs2_stream to)
Definition: rs_processing_gl.hpp:379
Definition: rs_processing_gl.hpp:231
static const auto OPTION_SELECTED
Definition: rs_processing_gl.hpp:302
m420_decoder()
Definition: rs_processing_gl.hpp:148
static const auto OPTION_FILLED
Definition: rs_processing_gl.hpp:337
static const auto OPTION_MOUSE_X
Definition: rs_processing_gl.hpp:298
void rs2_delete_processing_block(rs2_processing_block *block)
Definition: rs_processing_gl.hpp:170
Definition: rs_processing.hpp:429
uint32_t get_texture_id(unsigned int id=0) const
Definition: rs_processing_gl.hpp:107
pointcloud_renderer()
Definition: rs_processing_gl.hpp:328
Definition: rs_processing_gl.h:24
void init_rendering(bool use_glsl=true)
Definition: rs_processing_gl.hpp:46
static void handle(rs2_error *e)
Definition: rs_types.hpp:167
static const auto OPTION_PICKED_X
Definition: rs_processing_gl.hpp:344
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:47
static const auto OPTION_SELECTED
Definition: rs_processing_gl.hpp:349
static const auto OPTION_SCALE_FACTOR
Definition: rs_processing_gl.hpp:356
static const auto OPTION_SHADED
Definition: rs_processing_gl.hpp:338
Definition: rs_processing.hpp:360
static const auto OPTION_WAS_PICKED
Definition: rs_processing_gl.hpp:301
void rs2_gl_init_processing_glfw(int api_version, GLFWwindow *share_with, glfw_binding bindings, int use_glsl, rs2_error **error)
Definition: rs_option.h:73
Definition: rs_processing.hpp:810
rs2_processing_block * rs2_gl_create_camera_renderer(int api_version, rs2_error **error)
static const auto OPTION_MOUSE_PICK
Definition: rs_processing_gl.hpp:342
rs2_processing_block * rs2_gl_create_nv12_decoder(int api_version, rs2_error **error)
void rs2_gl_init_rendering(int api_version, int use_glsl, rs2_error **error)
Definition: rs_processing.hpp:766
rs2_processing_block * rs2_gl_create_uploader(int api_version, rs2_error **error)
rs2_processing_block * rs2_gl_create_y411_decoder(int api_version, rs2_error **error)
void set_option(rs2_option option, float value) const
Definition: rs_options.hpp:256
yuy_decoder()
Definition: rs_processing_gl.hpp:123
nv12_decoder()
Definition: rs_processing_gl.hpp:173
static const auto OPTION_MOUSE_PICK
Definition: rs_processing_gl.hpp:300
rs2_processing_block * rs2_gl_create_align(int api_version, rs2_stream to, rs2_error **error)
rs2_gl_matrix_type
Definition: rs_processing_gl.h:33
colorizer()
Definition: rs_processing_gl.hpp:216
Definition: rs_processing_gl.hpp:286
unsigned int rs2_gl_frame_get_texture_id(const rs2_frame *f, unsigned int id, rs2_error **error)
Definition: rs_processing.hpp:587
struct rs2_error rs2_error
Definition: rs_types.h:293
Definition: rs_processing_gl.hpp:325
rs2_processing_block * rs2_gl_create_pointcloud(int api_version, rs2_error **error)
rs2_frame * get() const
Definition: rs_frame.hpp:616
camera_renderer()
Definition: rs_processing_gl.hpp:289
struct GLFWwindow GLFWwindow
Definition: rs_processing_gl.h:43
static const auto OPTION_MOUSE_X
Definition: rs_processing_gl.hpp:340
void rs2_gl_init_processing(int api_version, int use_glsl, rs2_error **error)
Definition: rs_option.h:71