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