libhydride/include/fontapi_internal.h
2017-11-14 20:56:37 +03:00

38 lines
496 B
C

/*
* fontapi_internal.h
*
* Created on: Nov 11, 2017
* Author: nullifiedcat
*/
#pragma once
#include "fontapi.h"
#include "freetype-gl.h"
struct fontapi_font_t
{
int init;
int loaded;
int error;
texture_font_t *font;
texture_atlas_t *atlas;
char path[256];
float size;
};
texture_font_t*
fontapi_get(xoverlay_font_handle_t handle);
int
fontapi_init();
void
fontapi_destroy();
xoverlay_font_handle_t
fontapi_add_font(struct fontapi_font_t *font);