nuclear@5: /* nuclear@5: Copyright 2004 John Tsiombikas nuclear@5: nuclear@5: This file is part of gbasys, a library for GameBoy Advance development. nuclear@5: nuclear@5: This program is free software; you can redistribute it and/or modify nuclear@5: it under the terms of the GNU General Public License as published by nuclear@5: the Free Software Foundation; either version 2 of the License, or nuclear@5: (at your option) any later version. nuclear@5: nuclear@5: This program is distributed in the hope that it will be useful, nuclear@5: but WITHOUT ANY WARRANTY; without even the implied warranty of nuclear@5: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nuclear@5: GNU General Public License for more details. nuclear@5: nuclear@5: You should have received a copy of the GNU General Public License nuclear@5: along with this program; if not, write to the Free Software nuclear@5: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA nuclear@5: */ nuclear@5: #ifndef _FONT_H_ nuclear@5: #define _FONT_H_ nuclear@5: nuclear@5: struct pixel_buffer; nuclear@5: nuclear@5: struct font { nuclear@5: int x, y; nuclear@5: void *bitmap; nuclear@5: }; nuclear@5: nuclear@5: nuclear@5: extern struct font font_8x8; nuclear@5: extern struct font font_8x16; nuclear@5: nuclear@5: void set_font(struct font *fnt); nuclear@5: struct font *get_font(void); nuclear@5: void set_text_color(unsigned short fg, unsigned short bg); nuclear@5: void set_text_writebg(int enable); nuclear@5: nuclear@5: struct pixel_buffer *get_glyph(unsigned char c, unsigned short fg, unsigned short bg, int bpp); nuclear@5: int draw_glyph(unsigned char c, int x, int y, struct pixel_buffer *pbuf); nuclear@5: int draw_string(const char *str, int x, int y, struct pixel_buffer *pbuf); nuclear@5: nuclear@5: #endif /* _FONT_H_ */