From 6bb35ad3317c6909e8e7ad379011e7b899c743cc Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Mon, 10 Apr 2023 11:05:51 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index deb951044..cc069cdce 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Viz2D is a new way of writing graphical (on- and offscreen) applications with Op * Viz2D is not thread safe. Though it is possible to have several Viz2D objects in one or more threads and synchronize them using ```Viz2D::makeNonCurrent()``` and ```Viz2D::makeCurrent()```. This is a limitation of GLFW3. That said, OpenCV algorithms are multi-threaded as usual. * Viz2D uses InputArray/OutputArray/InputOutputArray which gives you the option to work with cv::Mat, std::vector and cv::UMat. Anyway, you should prefer to use cv::UMat whenever possible to automatically use hardware capabilities where available. * Access to different subsystems (opengl, opencl, nanovg and nanogui) is provided through "contexts". A context is simply a function that takes a functor, sets up the subsystem, executes the functor and tears-down the subsystem. +* Contexts ***may not*** be nested. For example, to create an OpenGL context and set the GL viewport: ```C++ From e5759f2f72adadd4d6842c17943d4640d4901ac2 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Mon, 10 Apr 2023 11:27:09 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc069cdce..00424fd0d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ v2d->gl([](const cv::Size sz) { ``` ## Examples - +Those are minimal examples, full samples below. ### Display an images Actually there are several ways to display an image but for now we focus on the most convinient way.