- First commit to gitea
This commit is contained in:
21
font.h
Normal file
21
font.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
struct FontChar
|
||||
{
|
||||
float x1, y1, x2, y2;
|
||||
char w, h, xo, yo, xa;
|
||||
};
|
||||
|
||||
struct Font
|
||||
{
|
||||
char lineHeight;
|
||||
unsigned char bw, bh;
|
||||
FontChar chars[96];
|
||||
unsigned texture;
|
||||
|
||||
void Load(const char* filename);
|
||||
void Print(int x, int y, const char* text, char color = 15);
|
||||
Vector2 GetSize(const char* text);
|
||||
};
|
||||
Reference in New Issue
Block a user