4#include <SDL3/SDL_metal.h>
5#include "SDL3pp_video.h"
48 constexpr explicit operator bool()
const {
return !!
value; }
80 : m_resource(resource)
116 : m_resource(SDL_Metal_CreateView(window))
126 std::swap(m_resource, other.m_resource);
145 constexpr bool operator==(std::nullptr_t _)
const {
return !m_resource; }
148 constexpr explicit operator bool()
const {
return !!m_resource; }
238 SDL_Metal_DestroyView(view);
253 return SDL_Metal_GetLayer(view);
Main include header for the SDL3pp library.
Safely wrap Window for non owning parameters.
Definition: SDL3pp_video.h:54