|
SDL3pp
A slim C++ wrapper for SDL3
|
Semi-safe reference for MetalView.


Public Member Functions | |
| MetalViewRef (MetalViewParam resource) | |
| Constructs from MetalViewParam. More... | |
| MetalViewRef (const MetalViewRef &other) | |
| Copy constructor. | |
| ~MetalViewRef () | |
| Destructor. | |
Public Member Functions inherited from SDL::MetalView | |
| constexpr | MetalView ()=default |
| Default ctor. | |
| constexpr | MetalView (const MetalViewRaw resource) |
| Constructs from MetalViewParam. More... | |
| constexpr | MetalView (const MetalView &other)=delete |
| Copy constructor. | |
| constexpr | MetalView (MetalView &&other) |
| Move constructor. | |
| constexpr | MetalView (const MetalViewRef &other)=delete |
| constexpr | MetalView (MetalViewRef &&other)=delete |
| MetalView (WindowParam window) | |
| Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window. More... | |
| ~MetalView () | |
| Destructor. | |
| MetalView & | operator= (MetalView other) |
| Assignment operator. | |
| constexpr MetalViewRaw | get () const |
| Retrieves underlying MetalViewRaw. | |
| constexpr MetalViewRaw | release () |
| Retrieves underlying MetalViewRaw and clear this. | |
| constexpr auto | operator<=> (const MetalView &other) const =default |
| Comparison. | |
| constexpr bool | operator== (std::nullptr_t _) const |
| Comparison. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr | operator MetalViewParam () const |
| Converts to MetalViewParam. | |
| void | Destroy () |
| Destroy an existing MetalView object. More... | |
| void * | GetLayer () |
| Get a pointer to the backing CAMetalLayer for the given view. More... | |
|
inline |
| resource | a MetalViewRaw or MetalView. |
This does not takes ownership!