class
WindowlessWindowsEglContextWindowless Windows/EGL context.
Contents
GL context using pure WINAPI and EGL, used in WindowlessWindowsEglApplication. It is built if WITH_WINDOWLESSWINDOWSEGLAPPLICATION
is enabled in CMake.
Meant to be used when there is a need to manage (multiple) GL contexts manually. See Manually managing windowless contexts for more information. If no other application header is included, this class is also aliased to Platform::WindowlessGLContext
.
Public types
- class Configuration
- Configuration.
Constructors, destructors, conversion operators
- WindowlessWindowsEglContext(const Configuration& configuration, GLContext* context = nullptr) explicit
- Constructor.
- WindowlessWindowsEglContext(NoCreateT) explicit
- Construct without creating the context.
- WindowlessWindowsEglContext(const WindowlessWindowsEglContext&) deleted
- Copying is not allowed.
- WindowlessWindowsEglContext(WindowlessWindowsEglContext&& other)
- Move constructor.
- ~WindowlessWindowsEglContext()
- Destructor.
Public functions
- auto operator=(const WindowlessWindowsEglContext&) -> WindowlessWindowsEglContext& deleted
- Copying is not allowed.
- auto operator=(WindowlessWindowsEglContext&& other) -> WindowlessWindowsEglContext&
- Move assignment.
- auto isCreated() const -> bool
- Whether the context is created.
- auto makeCurrent() -> bool
- Make the context current.
Function documentation
Magnum:: Platform:: WindowlessWindowsEglContext:: WindowlessWindowsEglContext(const Configuration& configuration,
GLContext* context = nullptr) explicit
Constructor.
Parameters | |
---|---|
configuration | Context configuration |
context | Optional Magnum context instance constructed using NoCreate to manage driver workarounds |
Once the context is created, make it current using makeCurrent() and create Platform::
Magnum:: Platform:: WindowlessWindowsEglContext:: WindowlessWindowsEglContext(NoCreateT) explicit
Construct without creating the context.
Move a instance with created context over to make it usable.
Magnum:: Platform:: WindowlessWindowsEglContext:: ~WindowlessWindowsEglContext()
Destructor.
Destroys the context, if any.
bool Magnum:: Platform:: WindowlessWindowsEglContext:: makeCurrent()
Make the context current.
Prints error message and returns false
on failure, otherwise returns true
.