Added 'style' font render argument

This commit is contained in:
MihailRis
2022-07-16 00:31:04 +03:00
committed by GitHub
parent fa4538c124
commit c0f5e5f4fc
3 changed files with 26 additions and 41 deletions
+5 -1
View File
@@ -7,6 +7,10 @@
class Texture;
class Batch2D;
#define STYLE_NONE 0
#define STYLE_SHADOW 1
#define STYLE_OUTLINE 2
class Font {
public:
std::vector<Texture*> pages;
@@ -16,7 +20,7 @@ public:
int getGlyphWidth(char c);
bool isPrintableChar(int c);
void draw(Batch2D* batch, std::wstring text, int x, int y);
void drawWithOutline(Batch2D* batch, std::wstring text, int x, int y);
void draw(Batch2D* batch, std::wstring text, int x, int y, int style);
};
#endif /* GRAPHICS_FONT_H_ */