Implementation of cv::Matx and cv::Vec is almost moved to matx.hpp
This commit is contained in:
@@ -136,14 +136,14 @@
|
||||
void* func = (void*) CV_GL_GET_PROC_ADDRESS(name);
|
||||
if (!func)
|
||||
{
|
||||
CV_Error(CV_OpenGlApiCallError, cv::format("Can't load OpenGL extension [%s]", name) );
|
||||
CV_Error(cv::Error::OpenGlApiCallError, cv::format("Can't load OpenGL extension [%s]", name) );
|
||||
}
|
||||
return func;
|
||||
}
|
||||
#else
|
||||
static void* IntGetProcAddress(const char*)
|
||||
{
|
||||
CV_Error(CV_OpenGlNotSupported, "The library is compiled without OpenGL support");
|
||||
CV_Error(cv::Error::OpenGlNotSupported, "The library is compiled without OpenGL support");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
@@ -465,6 +465,11 @@ void error( const Exception& exc )
|
||||
throw exc;
|
||||
}
|
||||
|
||||
void error(int _code, const String& _err, const char* _func, const char* _file, int _line)
|
||||
{
|
||||
error(cv::Exception(_code, _err, _func, _file, _line));
|
||||
}
|
||||
|
||||
CvErrorCallback
|
||||
redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
|
||||
{
|
||||
|
Reference in New Issue
Block a user