SDL_Point(3type)

okay bestie, we're in the SDL3 DATATYPES chapter, and the icon of the day is SDL_Point πŸ’…

✨ NAME ✨

SDL_Point β€” the structure that defines a point (using integers). No float drama, just ints, periodt.

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, here's the exact shape of it, do not freestyle the fields:

#include <SDL3/SDL_rect.h>

typedef struct SDL_Point
{
    int x;
    int y;
} SDL_Point;

πŸ’– AVAILABILITY πŸ’–

This struct is available since SDL 3.2.0. So if you're kicking it with SDL 3.2.0 or later, you're good 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at these when you're done, iykyk:


Simple Directmedia Layer β€’ SDL 3.4.18 β€’ page date: SDL_Point(3type) β€” bye bestie, hydrate and include your headers πŸ’–βœ¨

πŸ“¦ where this page comes from