SDL_GPUCubeMapFace(3type)

πŸ’– SDL_GPUCubeMapFace πŸ’–

okay bestie, welcome to the SDL3 DATATYPES corner of the manual, page SDL_GPUCubeMapFace(3type) β€” yes it's giving very "one job, does it perfectly" energy and honestly? we respect it. 🫢


✨ NAME ✨

SDL_GPUCubeMapFace β€” it specifies the face of a cube map. that's it. that's the whole gig. a cube has six sides and this enum is here to name them. iconic behavior, no notes. 🎲


🌈 SYNOPSIS 🌈

#include <SDL3/SDL_gpu.h>

typedef enum SDL_GPUCubeMapFace
{
    SDL_GPU_CUBEMAPFACE_POSITIVEX,
    SDL_GPU_CUBEMAPFACE_NEGATIVEX,
    SDL_GPU_CUBEMAPFACE_POSITIVEY,
    SDL_GPU_CUBEMAPFACE_NEGATIVEY,
    SDL_GPU_CUBEMAPFACE_POSITIVEZ,
    SDL_GPU_CUBEMAPFACE_NEGATIVEZ
} SDL_GPUCubeMapFace;

look at her. six little members. six sides of a cube. the way that's so satisfying, I'm obsessed. ✨


πŸ’… DESCRIPTION πŸ’…

so like, here's the vibe: this enum can be passed in as the layer field in texture-related structs. that's the whole tea. 🍡

if a struct is out here asking for a texture layer and it's a cube map situation, you hand it one of these faces and it just... works. main character behavior fr fr. πŸ‘‘


πŸ¦‹ AVAILABILITY πŸ¦‹

this enum has been around since SDL 3.2.0 β€” so if you're on anything older, she's not there yet and you're gonna get a compiler error, and that's just the universe telling you to upgrade bestie. πŸ˜­β¬†οΈ


πŸ’€ reminder, no cap: the enum members are SDL_GPU_CUBEMAPFACE_POSITIVEX, SDL_GPU_CUBEMAPFACE_NEGATIVEX, SDL_GPU_CUBEMAPFACE_POSITIVEY, SDL_GPU_CUBEMAPFACE_NEGATIVEY, SDL_GPU_CUBEMAPFACE_POSITIVEZ and SDL_GPU_CUBEMAPFACE_NEGATIVEZ. all six. don't skip a face, the cube will be lopsided and nobody wants that. 🧊

mwah πŸ’‹ that's a wrap! this little love letter came to you from Simple Directmedia Layer, running SDL 3.4.18, dated right there in the SDL_GPUCubeMapFace(3type) footer. go forth and render your cubes, bestie β€” you got this. πŸŒΈπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from