SDL_MetalView(3type)

πŸ’– SDL_MetalView πŸ’–

okay so bestie, welcome to the SDL3 DATATYPES corner of the manual, and today's main character is SDL_MetalView ✨ she's a type, she's a handle, she's lowkey the plug between SDL and Apple's Metal vibes πŸ“


🌸 NAME 🌸

SDL_MetalView β€” a handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS) πŸ¦‹

like, that's it, that's the whole girl. a pointer with a purpose πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_metal.h>

typedef void *SDL_MetalView;

no cap, that's the entire declaration. void * but make it fashion πŸ‘‘


πŸŽ€ AVAILABILITY πŸŽ€

this datatype has been serving looks since SDL 3.2.0 β€” so if you're on anything older, bestie, it's giving "not found" 😭


and that's the vibe check, fr fr. this page came to you courtesy of Simple Directmedia Layer, living its SDL 3.4.18 era, and it's filed under the manual name SDL_MetalView(3type) 🫢 go forth and render, icon πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from