static void getGLError(const char *file, int line, bool quit)
Checks if an OpenGL error occurred.
SENSGLTextureReader(unsigned int textureId, bool isGlTextureExternal, int targetWidth, int targetHeight)
ATTENTION: make sure this constructor is called from gl thread.
std::string _lastErrorMsg
bool _isGlTextureExternal
std::string getLastErrorMsg() const
cv::Mat readImageFromGpu()
static std::vector< std::string > _errors
vector for errors collected in getGLError
unsigned int _extTextureId
id of externally generated texture