Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

agl_gui.h

Go to the documentation of this file.
00001 00002 /* 00003 ______ __ ___ __ 00004 /\ _ \ /\ \ /\_ \ /\_\ 00005 \ \ \_\ \ \ \ \ __ ___ \//\ \ \/_/_ 00006 \ \ __ \ `/__ \ /'__`\ / __`\ \ \ \ /\ \ 00007 \ \ \/\ \/\\_\ \_/\ \_\ \/\ \_\ \_ \_\ \_ \_\ \_ 00008 \ \_\ \_\ \_____\ \___\ \ \______\/\____\/\____\ 00009 \/_/\/_/\/_____/\/___L\ \/______/\/____/\/____/ 00010 /\____/ 00011 \_/__/ 00012 00013 00014 00015 00016 An advanced game library 00017 00018 (c) Stephane APIOU 2003 00019 00020 00021 This program is free software; you can redistribute it and/or modify 00022 it under the terms of the GNU General Public License as published by 00023 the Free Software Foundation; either version 2 of the License, or 00024 (at your option) any later version. 00025 00026 This program is distributed in the hope that it will be useful, 00027 but WITHOUT ANY WARRANTY; without even the implied warranty of 00028 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00029 GNU General Public License for more details. 00030 00031 You should have received a copy of the GNU General Public License 00032 along with this program; if not, write to the Free Software 00033 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00034 00035 00036 00037 */ 00038 00040 00046 #ifndef _adgali_gui_h 00047 #define _adgali_gui_h 00048 00049 00050 /* Set up for C function definitions, even when using C++ */ 00051 #ifdef __cplusplus 00052 extern "C" 00053 { 00054 #endif 00055 00056 typedef struct 00057 { 00058 int created; 00059 agl_rect bbox; 00060 int yoffset; 00061 int advance; 00062 } agl_glyph; 00063 00064 typedef struct _agl_font 00065 { 00066 int height; 00067 int ascent; 00068 int descent; 00069 int linegap; 00070 agl_glyph glyphs[256]; 00071 struct _agl_fontio *pfio; 00072 void *priv; 00073 } agl_font; 00074 00075 extern agl_font *agl_fontioload(agl_ios * ops, int size); 00076 extern int agl_putc(agl_pix * pix, agl_font * font, agl_pos * pos, unsigned char c); 00077 extern int agl_puts(agl_pix * pix, agl_font * font, agl_pos * pos, unsigned char *str); 00078 extern int agl_printf(agl_pix * pix, agl_font * font, agl_pos * pos, char *fmt, ...); 00079 extern agl_font *agl_fontnew(void); 00080 extern int agl_fontfree(agl_font * font); 00081 00082 //basedraw routines 00083 int agl_bdrpixcolr(agl_pix * ptr, agl_rect * rect, agl_pos * pos, unsigned long color); 00084 void agl_bdrhlinecolr(agl_pix * ptr, short y, short ix, short ox, unsigned long color); 00085 void agl_bdrvlinecolr(agl_pix * ptr, short x, short iy, short oy, unsigned long color); 00086 int agl_bdrlinecolr(agl_pix * ptr, agl_rect * rect, agl_pos * ipos, agl_pos * dpos, unsigned long color); 00087 00088 /* Ends C function definitions when using C++ */ 00089 #ifdef __cplusplus 00090 }; 00091 #endif 00092 00093 #endif /* _agl_h */

Doc generated at 29 Sep 2004 for, adgali 0.2.4 written by Stephane APIOU, © 2001 Generated by Doxygen 1.3.8 ,