SDL_TextureAccess(3type)
hey bestie! welcome to the SDL_TextureAccess(3type) page, part of the SDL3 DATATYPES collection. let's get into it β¨
πΈ NAME πΈ
SDL_TextureAccess β the access pattern allowed for a texture.
π¦ SYNOPSIS π¦
okay so here's the code, bestie. it's giving enum energy:
#include <SDL3/SDL_render.h>
typedef enum SDL_TextureAccess
{
SDL_TEXTUREACCESS_STATIC, /**< Changes rarely, not lockable */
SDL_TEXTUREACCESS_STREAMING, /**< Changes frequently, lockable */
SDL_TEXTUREACCESS_TARGET /**< Texture can be used as a render target */
} SDL_TextureAccess;
so the three values are:
SDL_TEXTUREACCESS_STATICβ changes rarely, not lockable. πSDL_TEXTUREACCESS_STREAMINGβ changes frequently, lockable. π₯SDL_TEXTUREACCESS_TARGETβ texture can be used as a render target. π
the comments in the code literally spell it out for you, no cap.
π AVAILABILITY π
this enum has been available since SDL 3.2.0. so if you're on an older version, bestie, you're out of luck. π
sending love from Simple Directmedia Layer, version SDL 3.4.18, and the SDL_TextureAccess(3type) manual page. no date given, but you know it's fresh. bye bestie! ππ¦
π¦ 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