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 π₯
SDL_CreateGPUGraphicsPipeline(3)β the way that this is where you'd actually go to use your cull mode, periodt
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms