fixed ARC_String, worked on ARC_Text, and did some stuff with buffers
This commit is contained in:
parent
21a66f7fe6
commit
d01d78972e
8 changed files with 86 additions and 41 deletions
|
|
@ -62,6 +62,21 @@ void ARC_Renderer_InitBuffer(ARC_Renderer *renderer, uint32_t zIndex);
|
|||
*/
|
||||
void ARC_Renderer_RemoveBuffer(ARC_Renderer *renderer, uint32_t zIndex);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param renderer
|
||||
* @param zIndex
|
||||
*/
|
||||
void ARC_Renderer_RenderBuffer(ARC_Renderer *renderer, uint32_t zIndex);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param renderer
|
||||
*/
|
||||
void ARC_Renderer_RenderBuffers(ARC_Renderer *renderer);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
|
|
|
|||
|
|
@ -9,22 +9,47 @@ extern "C" {
|
|||
#include "arc/graphics/color.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/math/point.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
#include "arc/std/string.h"
|
||||
|
||||
typedef struct ARC_Text ARC_Text;
|
||||
typedef struct ARC_Text {
|
||||
ARC_String *name;
|
||||
|
||||
int32_t fontSize;
|
||||
ARC_FRect bounds;
|
||||
|
||||
ARC_Color color;
|
||||
|
||||
void *backendData;
|
||||
} ARC_Text;
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void ARC_Text_Create(ARC_Text **text, ARC_String *path, int32_t size, ARC_Color color);
|
||||
|
||||
void ARC_Text_Destroy(ARC_Text *font);
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void ARC_Text_Destroy(ARC_Text *text);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void ARC_Text_SetString(ARC_Text *text, ARC_Renderer *renderer, ARC_String *string);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void ARC_Text_Render(ARC_Text *text, ARC_Renderer *renderer);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void ARC_Text_SetPos(ARC_Text *text, ARC_Point pos);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //ARC_STD_STRING_H_
|
||||
#endif //ARC_STD_STRING_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue