taisei/src/font.h

25 lines
487 B
C
Raw Normal View History

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef FONT_H
#define FONT_H
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "texture.h"
Texture *load_text(const char *text, TTF_Font *font);
void draw_text(const char *text, int x, int y, TTF_Font *font);
void init_fonts();
struct Fonts {
TTF_Font *biolinum;
};
extern struct Fonts _fonts;
#endif