Enable OpenGL functions
MODIFY
binding-generator/src/settings.rs
binding-generator/src/settings.rs
@@ -553,7 +553,6 @@ pub static FUNC_CFG_ATTR: Lazy<HashMap<&str, (&str, &str)>> = Lazy::new(|| hashm
pub static ELEMENT_EXCLUDE: Lazy<RegexSet> = Lazy::new(|| RegexSet::new([
"^cv::String$",
"^cv::internal::format$", // 3.2 duplicate definition
- "^cv::ogl::",
"^cv::face::FacemarkLBF::BBox$", // not used, not exported in windows dll
].iter()).expect("Can't compile regexes"));
@@ -570,7 +569,6 @@ pub static ELEMENT_IGNORE: Lazy<RegexSet> = Lazy::new(|| RegexSet::new([
"^cv::MatAllocator$", // doesn't handle cpp part too well
"^cv::NAryMatIterator", // uses pointers of pointers
"^cv::Node$", // template class
- "^cv::ogl::",
"^std::exception_ptr$",
"^std::random_access_iterator_tag$",
].iter()).expect("Can't compile regexes"));

MODIFY
src_cpp/core.hpp
src_cpp/core.hpp
#include <opencv2/core/ocl.hpp>
#include <opencv2/core/va_intel.hpp>
#include <opencv2/core/cuda.hpp>
-//#include <opencv2/core/opengl.hpp> // todo
+#include <opencv2/core/opengl.hpp>
#if !(CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 2)
#include <opencv2/core/async.hpp>
#include <opencv2/core/bindings_utils.hpp>

Enable OpenGL functions