added text to graphics, basic functionality in place
This commit is contained in:
parent
4c172b6734
commit
7018500555
3 changed files with 110 additions and 0 deletions
23
include/arc/graphics/sdl/text.h
Normal file
23
include/arc/graphics/sdl/text.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#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"
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#include <SDL.h>
|
||||
|
||||
typedef struct ARC_Text {
|
||||
ARC_String *name;
|
||||
int32_t size;
|
||||
|
||||
ARC_Color color;
|
||||
|
||||
SDL_Texture *texture;
|
||||
ARC_Rect bounds;
|
||||
} ARC_Text;
|
||||
|
||||
#endif // !ARC_SDL
|
||||
|
||||
#endif // !ARC_SDL_TEXT_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue