Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ROFPlatformHandle Class Reference

Platform handle for the Offscreen platform. More...

#include <ROFPlatformHandle.h>

+ Inheritance diagram for ROFPlatformHandle:

Static Public Member Functions

static std::shared_ptr< ROFPlatformHandleMake () noexcept
 Creates an offscreen platform handle.
 

Additional Inherited Members

- Public Member Functions inherited from RPlatformHandle
RPlatform platform () const noexcept
 Returns the platform this handle belongs to.
 
RWLPlatformHandleasWL () noexcept
 Casts this handle to a Wayland platform handle.
 
RDRMPlatformHandleasDRM () noexcept
 Casts this handle to a DRM platform handle.
 
- Public Member Functions inherited from RObject
 RObject ()=default
 Constructs a default RObject.
 

Detailed Description

Platform handle for the Offscreen platform.

An RPlatformHandle implementation (see RPlatformHandle) whose platform() is RPlatform::Offscreen. Unlike the DRM or Wayland handles, it carries no external resources and simply identifies the offscreen platform (i.e. rendering without a display backend).

Use Make() to create an instance.

Member Function Documentation

◆ Make()

static std::shared_ptr< ROFPlatformHandle > Make ( )
inlinestaticnoexcept

Creates an offscreen platform handle.

Returns
A shared pointer to the created handle. Never fails.