Loading...
Searching...
No Matches
cv::v4d::detail::GLContext Class Reference
#include <opencv2/v4d/detail/glcontext.hpp>
Inheritance diagram for cv::v4d::detail::GLContext:
Public Member Functions | |
GLContext (const int32_t &idx, cv::Ptr< FrameBufferContext > fbContext) | |
virtual | ~GLContext () |
virtual void | execute (std::function< void()> fn) override |
cv::Ptr< FrameBufferContext > | fbCtx () |
const int32_t & | getIndex () const |
Public Member Functions inherited from cv::v4d::detail::V4DContext | |
virtual | ~V4DContext () |
virtual void | execute (std::function< void()> fn)=0 |
Detailed Description
Used to setup an OpengLG context
Constructor & Destructor Documentation
◆ GLContext()
cv::v4d::detail::GLContext::GLContext | ( | const int32_t & | idx, |
cv::Ptr< FrameBufferContext > | fbContext | ||
) |
Creates a OpenGL Context
- Parameters
-
fbContext The framebuffer context
◆ ~GLContext()
|
inlinevirtual |
Member Function Documentation
◆ execute()
|
overridevirtual |
Execute function object fn inside a gl context. The context takes care of setting up opengl states.
- Parameters
-
fn A function that is passed the size of the framebuffer and performs drawing using opengl
Implements cv::v4d::detail::V4DContext.
◆ fbCtx()
cv::Ptr< FrameBufferContext > cv::v4d::detail::GLContext::fbCtx | ( | ) |
◆ getIndex()
const int32_t & cv::v4d::detail::GLContext::getIndex | ( | ) | const |
The documentation for this class was generated from the following file:
- opencv2/v4d/detail/glcontext.hpp