Function rs2_gl_init_processing_glfw

Function Documentation

void rs2_gl_init_processing_glfw(int api_version, GLFWwindow *share_with, glfw_binding bindings, int use_glsl, rs2_error **error)

In order to share GL processing results with GLFW rendering application the user need to initialize rendering by passing GLFW binding information C++ wrapper will automatically generate and pass this data

Parameters:
  • api_version[in] Users are expected to pass their version of RS2_API_VERSION to make sure they are running the correct librealsense version.

  • share_with[in] Pointer to GLFW window object. This window will be able to use texture IDs provided inside GPU-frames generated by the library

  • bindings[in] Pointers to GLFW methods that will be used by the library

  • use_glsl[in] Use GLSL shaders for processing

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored