Wip: Add basic vector math
This commit is contained in:
@@ -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); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user