Loading...
Searching...
No Matches
cv::v4d::detail::GLContext Class Reference

#include <opencv2/v4d/detail/glcontext.hpp>

Inheritance diagram for cv::v4d::detail::GLContext:
cv::v4d::detail::V4DContext

Public Member Functions

 GLContext (const int32_t &idx, cv::Ptr< FrameBufferContext > fbContext)
 
virtual ~GLContext ()
 
virtual void execute (std::function< void()> fn) override
 
cv::Ptr< FrameBufferContextfbCtx ()
 
const int32_tgetIndex () 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
fbContextThe framebuffer context

◆ ~GLContext()

virtual cv::v4d::detail::GLContext::~GLContext ( )
inlinevirtual

Member Function Documentation

◆ execute()

virtual void cv::v4d::detail::GLContext::execute ( std::function< void()>  fn)
overridevirtual

Execute function object fn inside a gl context. The context takes care of setting up opengl states.

Parameters
fnA 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: