2023-06-10 18:33:09 -06:00
|
|
|
#ifndef ARC_SDL_TEXT_H_
|
|
|
|
|
#define ARC_SDL_TEXT_H_
|
|
|
|
|
|
|
|
|
|
#include "arc/std/string.h"
|
|
|
|
|
#include "arc/graphics/color.h"
|
|
|
|
|
#include "arc/math/rectangle.h"
|
|
|
|
|
|
2024-02-08 17:47:32 -07:00
|
|
|
#ifdef ARC_SDL2_GRAPHICS
|
2023-06-10 18:33:09 -06:00
|
|
|
#include <SDL.h>
|
|
|
|
|
|
|
|
|
|
typedef struct ARC_Text {
|
|
|
|
|
ARC_String *name;
|
|
|
|
|
int32_t size;
|
|
|
|
|
|
|
|
|
|
ARC_Color color;
|
|
|
|
|
|
|
|
|
|
SDL_Texture *texture;
|
|
|
|
|
ARC_Rect bounds;
|
|
|
|
|
} ARC_Text;
|
|
|
|
|
|
2024-02-08 17:47:32 -07:00
|
|
|
#endif // !ARC_SDL2_Graphics
|
2023-06-10 18:33:09 -06:00
|
|
|
|
|
|
|
|
#endif // !ARC_SDL_TEXT_H_
|