Function rs2_gl_init_rendering
Defined in File rs_processing_gl.h
Function Documentation
-
void rs2_gl_init_rendering(int api_version, int use_glsl, rs2_error **error)
Initialize rendering pipeline. This function must be called before executing any of the rendering blocks. Rendering blocks do not handle threading, and assume all calls (including init / shutdown) Until initialized, rendering blocks will do nothing (function as bypass filters) are serialized and coming from a single rendering thread
- 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.use_glsl – [in] On modern GPUs you can get slightly better performance using GLSL However, this assumes the current rendering context is v3+ Setting use_glsl to false will use legacy OpenGL calls This in turn assumes the rendering context is either version < 3, or is a compatibility context
error – [out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored