EGLplus (0.52.0) a C++ wrapper for EGL

eglplus::Context Class Reference

Wrapper around EGLContext. More...

#include </home/chochlik/devel/oglplus/include/eglplus/context.hpp>

Public Member Functions

 Context (Context &&tmp)
 Contexts are move constructible.
 
 Context (const Display &display, const Config &config)
 Construct a non-sharing context without any attributes. More...
 
 Context (const Display &display, const Config &config, const Context &shared_context)
 Construct a sharing context without any attributes. More...
 
 Context (const Display &display, const Config &config, const FinishedContextAttribs &attribs)
 Construct a non-sharing context with attributes. More...
 
 Context (const Display &display, const Config &config, const Context &shared_context, const FinishedContextAttribs &attribs)
 Construct a sharing context without any attributes. More...
 
 ~Context (void)
 Destroys the wrapped context. More...
 
bool MakeCurrent (const Surface &draw_surface, const Surface &read_surface)
 Makes the context current. More...
 
bool MakeCurrent (const Surface &surface)
 Makes the context current. More...
 
bool MakeCurrent (void)
 Makes the context current without surfaces. More...
 
bool Release (void)
 Releases the current context without assigning a new one. More...
 
bool Query (ContextAttrib attrib, EGLint &value) const
 Queries a context attribute. More...
 
EGLint ConfigId (void) const
 Returns the context framebuffer config id. More...
 
bool WaitClient (void) const
 Wait for client API commands to complete. More...
 
bool WaitGL (void) const
 Wait for GL API commands to complete. More...
 
bool WaitNative (EGLint engine) const
 Wait for native API commands to complete. More...
 

Detailed Description

Wrapper around EGLContext.

Constructor & Destructor Documentation

eglplus::Context::Context ( const Display display,
const Config config 
)

Construct a non-sharing context without any attributes.

Related EGL symbols:
eglCreateContext
eglplus::Context::Context ( const Display display,
const Config config,
const Context shared_context 
)

Construct a sharing context without any attributes.

Related EGL symbols:
eglCreateContext
eglplus::Context::Context ( const Display display,
const Config config,
const FinishedContextAttribs attribs 
)

Construct a non-sharing context with attributes.

Related EGL symbols:
eglCreateContext
eglplus::Context::Context ( const Display display,
const Config config,
const Context shared_context,
const FinishedContextAttribs attribs 
)

Construct a sharing context without any attributes.

Related EGL symbols:
eglCreateContext
eglplus::Context::~Context ( void  )

Destroys the wrapped context.

Related EGL symbols:
eglDestroyContext

Member Function Documentation

EGLint eglplus::Context::ConfigId ( void  ) const

Returns the context framebuffer config id.

Related EGL symbols:
eglQueryContext
bool eglplus::Context::MakeCurrent ( const Surface draw_surface,
const Surface read_surface 
)

Makes the context current.

Related EGL symbols:
eglMakeCurrent

References MakeCurrent().

bool eglplus::Context::MakeCurrent ( const Surface surface)

Makes the context current.

Related EGL symbols:
eglMakeCurrent

References MakeCurrent().

bool eglplus::Context::MakeCurrent ( void  )

Makes the context current without surfaces.

Note
This function works only if EGL implements the EGL_KHR_surfaceless_context extension.
Related EGL symbols:
eglMakeCurrent

Referenced by MakeCurrent(), and Release().

bool eglplus::Context::Query ( ContextAttrib  attrib,
EGLint &  value 
) const

Queries a context attribute.

Related EGL symbols:
eglQueryContext
bool eglplus::Context::Release ( void  )

Releases the current context without assigning a new one.

Related EGL symbols:
eglMakeCurrent

References MakeCurrent().

bool eglplus::Context::WaitClient ( void  ) const

Wait for client API commands to complete.

Related EGL symbols:
eglWaitClient
bool eglplus::Context::WaitGL ( void  ) const

Wait for GL API commands to complete.

Related EGL symbols:
eglWaitGL
bool eglplus::Context::WaitNative ( EGLint  engine) const

Wait for native API commands to complete.

Related EGL symbols:
eglWaitNative

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/eglplus/context.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).