Moved FontDirection enum to Renderer.h

This commit is contained in:
abdelrahman committed 2023-02-01 00:00:43 +00:00
1 parent 79944cfa13
commit 62d7c6d54e
2 files changed
+10 -9

No files matched your search

+2 -9
View File
@@ -14,13 +14,6 @@
extern "C" { extern "C" {
#endif // !__cplusplus #endif // !__cplusplus
typedef enum {
FONT_DIRECTION_LTR = TTF_DIRECTION_LTR,
FONT_DIRECTION_RTL = TTF_DIRECTION_RTL,
FONT_DIRECTION_TTB = TTF_DIRECTION_TTB,
FONT_DIRECTION_BTT = TTF_DIRECTION_BTT,
} FontDirection;
// GENERAL ENGINE API // GENERAL ENGINE API
/** /**
@@ -39,11 +32,11 @@ void close_engine();
i64 get_time(); i64 get_time();
// END GENERAL ENGINE API // END GENERAL ENGINE API
// ASSET MANAGEMENT API // OBJECT MANAGEMENT API
ObjectID add_object(void *object, EventHandlerPtr eh, UpdateFuncPtr uf, ObjectID add_object(void *object, EventHandlerPtr eh, UpdateFuncPtr uf,
RenderFuncPtr rf); RenderFuncPtr rf);
void remove_object(ObjectID *id); void remove_object(ObjectID *id);
// END ASSET MANAGEMENT API // END OBJECT MANAGEMENT API
// ASSET MANAGEMENT API // ASSET MANAGEMENT API
AssetID load_asset(const char *path, AssetType type); AssetID load_asset(const char *path, AssetType type);
+8
View File
@@ -5,6 +5,7 @@
#include "SDL_pixels.h" #include "SDL_pixels.h"
#include "SDL_render.h" #include "SDL_render.h"
#include "SDL_surface.h" #include "SDL_surface.h"
#include "SDL_ttf.h"
#include "SDL_video.h" #include "SDL_video.h"
#include "aliases.h" #include "aliases.h"
#include <aliases.h> #include <aliases.h>
@@ -21,6 +22,13 @@ typedef struct {
i32 height; i32 height;
} TextSize; } TextSize;
typedef enum {
FONT_DIRECTION_LTR = TTF_DIRECTION_LTR,
FONT_DIRECTION_RTL = TTF_DIRECTION_RTL,
FONT_DIRECTION_TTB = TTF_DIRECTION_TTB,
FONT_DIRECTION_BTT = TTF_DIRECTION_BTT,
} FontDirection;
typedef struct { typedef struct {
f32 x; f32 x;
f32 y; f32 y;