#include
<eglplus/context.hpp>
Context
is a wrapper around EGLContext
.
typedef AttributeList<ContextAttrib, ...> ContextAttribs;typedef FinishedAttributeList<ContextAttrib, ...> FinishedContextAttribs;
![]()
class Context { public: Context(Context&& tmp); Context(const Context& tmp) = delete; Context( const Display& display, const Config& config );Context( const Display& display, const Config& config, const Context& shared_context );
Context( const Display& display, const Config& config, const FinishedContextAttribs& attribs );
Context( const Display& display, const Config& config, const Context& shared_context, const FinishedContextAttribs& attribs );
~Context(void);
Boolean MakeCurrent( const Surface& draw_surface, const Surface& read_surface );
Boolean MakeCurrent(const Surface& surface); Boolean MakeCurrent(void);
Boolean Release(void);
![]()
Constructs a non-sharing context without any attributes. See |
|
Construct a sharing context without any attributes. See |
|
Construct a non-sharing context with the specified attributes. See
|
|
Construct a sharing context without any attributes. See |
|
Destroys the wrapped context. See |
|
Makes the context current. See |
|
Makes the context current without using any surfaces. See |
|
Releases the current context without assigning a new one. See |
Boolean Query(ContextAttrib attrib, EGLint& value) const;EGLint ConfigId(void) const;
Boolean WaitClient(void) const;
Boolean WaitGL(void) const;
Boolean WaitNative(EGLint engine) const;
}; ::EGLContext GetEGLHandle(const Context& context) noexcept;
};
Queries a context attribute. See |
|
Queries a context attribute. See |
|
Waits for client API commands to complete. See |
|
Waits for GL API commands to complete. See |
|
Waits for native API commands to complete. See |
|
Returns the EGL context handle wrapped by a Context. |