Page principale | Structures de données | Liste des fichiers | Champs de donnée | Portée globale

drawlib.h

Aller à la documentation de ce fichier.
00001 /*#################################################################################### 00002 # This Code is part of the libg100 library : http://libg100.sf.net # 00003 # # 00004 # THIS LIBRARY IS DISTRIBUTED "AS IS". # 00005 # NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. # 00006 # YOU USE AT YOUR OWN RISK. # 00007 # THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, # 00008 # LOSS OF PROFITS OR ANY OTHER KIND OF LOSS # 00009 # WHILE USING OR MISUSING THIS LIBRARY. # 00010 # # 00011 # This library is Distributed in LGPL License, read lgpl.txt or go to : # 00012 # http://opensource.org/licenses/lgpl-license.php # #/ 00013 ####################################################################################*/ 00014 00023 #if !defined __DRAWLIB 00024 #define __DRAWLIB 00025 00026 typedef unsigned char uchar; 00027 00028 00032 #define DRAW_BUFFER1 0x1A60 00033 00037 #define DRAW_JUMP 2048 00038 00042 #define DRAW_CLIPG 0 00043 00047 #define DRAW_CLIPD 128 00048 00052 #define DRAW_CLIPH 0 00053 00057 #define DRAW_CLIPB 64 00058 00060 00061 /* Fonctions à compiler 00062 * NE SUPPRIMEZ PAS CES 5 MACROS, 00063 * mettez en commentaires les define correspondants aux fonctions dont vous n'avez pas besoin. 00064 */ 00065 #define FUNC_DRAWSPR 00066 #define FUNC_SIZESPRITE 00067 #define FUNC_DRAW_NOMASK_NOCLIP 00068 #define FUNC_DRAW_MASK_NOCLIP 00069 #define FUNC_DRAW_NOMASK_CLIP 00070 #define FUNC_DRAW_MASK_CLIP 00071 00073 00074 /* Macros à passer comme 4eme argument de drawspr pour spécifier le type d'affichage */ 00075 #define MODE_NOMASK_NOCLIP 0 00076 #define MODE_MASK_NOCLIP 1 00077 #define MODE_NOMASK_CLIP 2 00078 #define MODE_MASK_CLIP 3 00079 00081 00082 #ifdef __cplusplus 00083 extern "C" { 00084 #endif 00085 00098 void drawspr(int x, char y, void far* spr, uchar mode); 00099 00108 void draw_noM_noC (int x,char y,void far* spr); 00109 00118 void draw_M_noC (int x,char y,void far* spr); 00119 00128 void draw_noM_C (int x,char y,void far* spr); 00129 00138 void draw_M_C (int x,char y,void far* spr); 00139 00147 int sizesprite(uchar Haut,uchar Larg); 00148 00158 #define drawsprite(a,b,c) draw_M_C(a,b,c) 00159 00160 #ifdef __cplusplus 00161 } 00162 #endif 00163 00164 00166 00167 #endif
Copyright 2004 The Libg100 Team
Sourceforge Project - LGPL Licensing