class
WindowlessIosContextWindowless iOS context.
Contents
GL context using EAGL on iOS, used in WindowlessIosApplication. Does not have any default framebuffer. It is built if WITH_WINDOWLESSIOSAPPLICATION
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
- WindowlessIosContext(const Configuration& configuration, Context* context = nullptr) explicit
- Constructor.
- WindowlessIosContext(NoCreateT) explicit
- Construct without creating the context.
- WindowlessIosContext(const WindowlessIosContext&) deleted
- Copying is not allowed.
- WindowlessIosContext(WindowlessIosContext&& other)
- Move constructor.
- ~WindowlessIosContext()
- Destructor.
Public functions
- auto operator=(const WindowlessIosContext&) -> WindowlessIosContext& deleted
- Copying is not allowed.
- auto operator=(WindowlessIosContext&& other) -> WindowlessIosContext&
- Move assignment.
- auto isCreated() const -> bool
- Whether the context is created.
- auto makeCurrent() -> bool
- Make the context current.
Function documentation
Magnum:: Platform:: WindowlessIosContext:: WindowlessIosContext(const Configuration& configuration,
Context* 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:: WindowlessIosContext:: WindowlessIosContext(NoCreateT) explicit
Construct without creating the context.
Move a instance with created context over to make it usable.
Magnum:: Platform:: WindowlessIosContext:: ~WindowlessIosContext()
Destructor.
Destroys the context, if any.
bool Magnum:: Platform:: WindowlessIosContext:: makeCurrent()
Make the context current.
Prints error message and returns false
on failure, otherwise returns true
.