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