Loading...
Searching...
No Matches
cv::v4d::detail::NanoVGContext Class Reference
#include <opencv2/v4d/detail/nanovgcontext.hpp>
Inheritance diagram for cv::v4d::detail::NanoVGContext:

Classes | |
class | Scope |
Public Member Functions | |
NanoVGContext (cv::Ptr< FrameBufferContext > fbContext) | |
virtual | ~NanoVGContext () |
virtual void | execute (std::function< void()> fn) override |
cv::Ptr< FrameBufferContext > | fbCtx () |
![]() | |
virtual | ~V4DContext () |
virtual void | execute (std::function< void()> fn)=0 |
Detailed Description
Used to setup a nanovg context
Constructor & Destructor Documentation
◆ NanoVGContext()
cv::v4d::detail::NanoVGContext::NanoVGContext | ( | cv::Ptr< FrameBufferContext > | fbContext | ) |
Creates a NanoVGContext
◆ ~NanoVGContext()
|
inlinevirtual |
Member Function Documentation
◆ execute()
|
overridevirtual |
Execute function object fn inside a nanovg context. The context takes care of setting up opengl and nanovg states. A function object passed like that can use the functions in cv::viz::nvg.
- Parameters
-
fn A function that is passed the size of the framebuffer and performs drawing using cv::viz::nvg
Implements cv::v4d::detail::V4DContext.
◆ fbCtx()
cv::Ptr< FrameBufferContext > cv::v4d::detail::NanoVGContext::fbCtx | ( | ) |
The documentation for this class was generated from the following file:
- opencv2/v4d/detail/nanovgcontext.hpp