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
32
include/arc/graphics/text.h
Normal file
32
include/arc/graphics/text.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef ARC_STD_TEXT_H_
|
||||
#define ARC_STD_TEXT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include "arc/graphics/color.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/math/point.h"
|
||||
#include "arc/std/string.h"
|
||||
|
||||
void ARC_TTF_Init();
|
||||
|
||||
typedef struct ARC_Text ARC_Text;
|
||||
|
||||
void ARC_Text_Create(ARC_Text **text, ARC_String *path, int32_t size, ARC_Color color);
|
||||
|
||||
void ARC_Text_Destroy(ARC_Text *font);
|
||||
|
||||
void ARC_Text_SetString(ARC_Text *text, ARC_Renderer *renderer, ARC_String *string);
|
||||
|
||||
void ARC_Text_Render(ARC_Text *text, ARC_Renderer *renderer);
|
||||
|
||||
void ARC_Text_SetPos(ARC_Text *text, ARC_Point pos);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //ARC_STD_STRING_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue