2010-11-14 13:24:56 +01:00
|
|
|
/*
|
2011-03-05 13:44:21 +01:00
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
|
|
|
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
2010-11-14 13:24:56 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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);
|
2011-05-08 13:48:25 +02:00
|
|
|
void init_fonts();
|
2010-11-14 13:24:56 +01:00
|
|
|
|
|
|
|
struct Fonts {
|
|
|
|
TTF_Font *biolinum;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct Fonts _fonts;
|
|
|
|
|
|
|
|
#endif
|