Wip: Add basic vector math

This commit is contained in:
Timothy O'Barr
2026-09-29 16:31:02 -05:00
parent 1a69261952
commit 867980c3f9
5 changed files with 107 additions and 14 deletions
+5 -5
View File
@@ -19,7 +19,7 @@ private:
TTF_Font *loadedFont = nullptr;
SDL_Surface *textRenderingSurface = nullptr;
SDL_Color color;
SDL_Color color = {};
SDL_Texture *font_texture = nullptr;
@@ -28,8 +28,8 @@ private:
public:
SDL_AppResult OpenFont(fs::path fontPath);
bool SetText(std::string text, Window *window);
void Render();
void CloseFont() { TTF_CloseFont(loadedFont); }
SDL_AppResult OpenFont(const fs::path &font);
bool SetText(const std::string &text, const Window *win, SDL_FRect rect);
void Render() const;
void CloseFont() const { TTF_CloseFont(loadedFont); }
};