SDL_GPUCullMode(3type)

✨ NAME ✨

SDL_GPUCullMode β€” bestie, this is the enum that says which way a triangle has to be facing for it to get culled. Like, straight up deleted from the render. It specifies the facing direction in which triangle faces will be culled. πŸ’…

(also hi, this is a SDL3 DATATYPES page, iykyk πŸ¦‹)


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_gpu.h>

typedef enum SDL_GPUCullMode
{
    SDL_GPU_CULLMODE_NONE,   /**< No triangles are culled. */
    SDL_GPU_CULLMODE_FRONT,  /**< Front-facing triangles are culled. */
    SDL_GPU_CULLMODE_BACK    /**< Back-facing triangles are culled. */
} SDL_GPUCullMode;

okay so three options, that's the whole menu, no hidden items, no secret combo πŸŽ€

  • SDL_GPU_CULLMODE_NONE β€” literally nobody gets culled. every triangle lives. main character energy for all of them ✨
  • SDL_GPU_CULLMODE_FRONT β€” front-facing triangles are the ones getting culled. bye bestie 🫢
  • SDL_GPU_CULLMODE_BACK β€” back-facing triangles are the ones getting culled. not me deleting the ones facing away 😭

πŸ’– AVAILABILITY πŸ’–

this enum has been around since SDL 3.2.0, so it's not new new, it's just been quietly serving πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯


k that's the whole page bestie, go slay your render pipeline πŸ’…βœ¨

this came to you from the Simple Directmedia Layer girlies, SDL 3.4.18 edition, and it's the SDL_GPUCullMode(3type) era β€” mwah, love u, bye πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from