mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
Added 'style' font render argument
This commit is contained in:
parent
fa4538c124
commit
c0f5e5f4fc
3 changed files with 26 additions and 41 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue