TTF_ImageType(3type)
π TTF_ImageType β like, the whole vibe of a glyph image π
okay bestie, welcome to the SDL_ttf3 DATATYPES corner of the manual, where we're decoding TTF_ImageType β literally just the type of data chillin' inside a glyph image. no cap. π
β¨ NAME β¨
TTF_ImageType β the type of data in a glyph image. that's it, that's the whole job. she's an enum and she's iconic for it. π
πΈ HEADER FILE πΈ
Defined in SDL3_ttf/SDL_ttf.h. yes bestie, that's where she lives. go say hi. π¦
π SYNOPSIS π
#include "SDL3_ttf/SDL_ttf.h"
typedef enum TTF_ImageType
{
TTF_IMAGE_INVALID,
TTF_IMAGE_ALPHA, /**< The color channels are white */
TTF_IMAGE_COLOR, /**< The color channels have image data */
TTF_IMAGE_SDF, /**< The alpha channel has signed distance field information */
} TTF_ImageType;
look at her. four little constants, each one carrying a whole personality. the way that this enum just exists to tell you what kind of pixels you're dealing with? obsessed. π
β AVAILABILITY β
This enum is available since SDL_ttf 3.0.0. so if you're on something older, bestie, it's giving "not invited to the party" π β upgrade era. π₯
and that's the tea, fr fr. this page came to you straight from SDL_ttf 3.2.2 β no date on the footer, so don't come for me about it, it's simply not there π. mwah, go render some glyphs, you got this. πβ¨π«Ά
π¦ where this page comes from
- debian trixie: libsdl3-ttf-doc 3.2.2+ds-1 Β· Zlib
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- ubuntu questing: libsdl3-ttf-doc 3.2.2+ds-1
- ubuntu resolute: libsdl3-ttf-doc 3.2.2+ds-1build1 Β· Zlib
- ubuntu stonking: libsdl3-ttf-doc 3.2.2+ds-2 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms