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... | |
Wrapper around EGLContext.
Construct a non-sharing context without any attributes.
eglCreateContext | eglplus::Context::Context | ( | const Display & | display, |
| const Config & | config, | ||
| const Context & | shared_context | ||
| ) |
Construct a sharing context without any attributes.
eglCreateContext | eglplus::Context::Context | ( | const Display & | display, |
| const Config & | config, | ||
| const FinishedContextAttribs & | attribs | ||
| ) |
Construct a non-sharing context with attributes.
eglCreateContext | eglplus::Context::Context | ( | const Display & | display, |
| const Config & | config, | ||
| const Context & | shared_context, | ||
| const FinishedContextAttribs & | attribs | ||
| ) |
Construct a sharing context without any attributes.
eglCreateContext | eglplus::Context::~Context | ( | void | ) |
Destroys the wrapped context.
eglDestroyContext | EGLint eglplus::Context::ConfigId | ( | void | ) | const |
Returns the context framebuffer config id.
eglQueryContext | bool eglplus::Context::MakeCurrent | ( | const Surface & | surface | ) |
| bool eglplus::Context::MakeCurrent | ( | void | ) |
Makes the context current without surfaces.
eglMakeCurrent Referenced by MakeCurrent(), and Release().
| bool eglplus::Context::Query | ( | ContextAttrib | attrib, |
| EGLint & | value | ||
| ) | const |
Queries a context attribute.
eglQueryContext | bool eglplus::Context::Release | ( | void | ) |
Releases the current context without assigning a new one.
eglMakeCurrent References MakeCurrent().
| bool eglplus::Context::WaitClient | ( | void | ) | const |
Wait for client API commands to complete.
eglWaitClient | bool eglplus::Context::WaitGL | ( | void | ) | const |
Wait for GL API commands to complete.
eglWaitGL | bool eglplus::Context::WaitNative | ( | EGLint | engine | ) | const |
Wait for native API commands to complete.
eglWaitNative