35 lines
485 B
C
35 lines
485 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;
|
|
|
|
texture_font_t *font;
|
|
texture_atlas_t *atlas;
|
|
};
|
|
|
|
struct fontapi_font_t loaded_fonts[XOVERLAY_FONT_COUNT];
|
|
|
|
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);
|