Function rs2_gl_frame_get_texture_id

Function Documentation

unsigned int rs2_gl_frame_get_texture_id(const rs2_frame *f, unsigned int id, rs2_error **error)

Assuming frame is extendable to RS2_GL_EXTENSION_VIDEO_FRAME, this method will fetch one of frames texture IDs Each GPU frame can hold one or more OpenGL textures

Parameters:
  • f[in] Frame pointer

  • id[in] Index of texture within the frame

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

Returns:

OpenGL texture