mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
21 lines
400 B
C++
21 lines
400 B
C++
#ifndef GRAPHICS_FONT_H_
|
|
#define GRAPHICS_FONT_H_
|
|
|
|
#include <string>
|
|
|
|
class Texture;
|
|
class Batch2D;
|
|
|
|
class Font {
|
|
public:
|
|
Texture* texture;
|
|
Font(Texture* texture);
|
|
~Font();
|
|
|
|
int getGlyphWidth(char c);
|
|
bool isPrintableChar(char c);
|
|
void draw(Batch2D* batch, std::string text, int x, int y);
|
|
void drawWithShadow(Batch2D* batch, std::string text, int x, int y);
|
|
};
|
|
|
|
#endif /* GRAPHICS_FONT_H_ */
|