SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::MetalViewRef Struct Reference

Semi-safe reference for MetalView.

Inheritance diagram for SDL::MetalViewRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::MetalViewRef:
Collaboration graph
[legend]

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.
 
MetalViewoperator= (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...
 

Constructor & Destructor Documentation

◆ MetalViewRef()

SDL::MetalViewRef::MetalViewRef ( MetalViewParam  resource)
inline
Parameters
resourcea MetalViewRaw or MetalView.

This does not takes ownership!


The documentation for this struct was generated from the following file: