Function rs2_gl_init_rendering_glfw

Function Documentation

void rs2_gl_init_rendering_glfw(int api_version, glfw_binding bindings, int use_glsl, rs2_error **error)

In order to use GL rendering with GLFW 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.

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

  • use_glsl[in] Use GLSL shaders for rendering

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