// Header File // Created 03/11/2003; 19:19:05 //Librairie de dessin de textes... //Dessine un caractère du font0 dans le buffer dest. void Font0_DrawSprite (register short x asm("%d0"), register short y asm("%d1"), register short h asm("%d2"), register void *sprite asm("%a1"), register void *dest asm("%a0")); //Dessine un caractère blanc void Font0_DrawSprite_White (register short x asm("%d0"), register short y asm("%d1"), register short h asm("%d2"), register void *sprite asm("%a1"), register void *dest asm("%a0")); //Dessine un caractère du font0 void Font0_DrawChar (short x, short y, unsigned char nb, void *dest) { //NULL if (nb==32) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [0],dest); return;} //Guillement (") if (nb==34) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [1],dest); return;} //Virgule (,) if (nb==44) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [2],dest); return;} //Point (.) if (nb==46) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [3],dest); return;} //Chiffres (0-9) if ((nb>=48) && (nb<=57)) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [nb-44],dest); return;} //Lettres majuscule (A-Z) if ((nb>=65) && (nb<=90)) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [nb-51],dest); return;} //Lettre minuscule (a-z) if ((nb>=97) && (nb<=122)) { Font0_DrawSprite (x,y,8,SPRITE_FONT0 [nb-83],dest); return;} } //Dessine texte font0 void Font0_DrawString (short x, short y, char *string, void *dest) { for (unsigned short i=0; i=48) && (nb<=57)) { Font0_DrawSprite_White (x,y,8,SPRITE_FONT0 [nb-44],dest); return;} //Lettres majuscule (A-Z) if ((nb>=65) && (nb<=90)) { Font0_DrawSprite_White (x,y,8,SPRITE_FONT0 [nb-51],dest); return;} //Lettre minuscule (a-z) if ((nb>=97) && (nb<=122)) { Font0_DrawSprite_White (x,y,8,SPRITE_FONT0 [nb-83],dest); return;} } //Dessine texte font0 blanc void Font0_DrawString_White (short x, short y, char *string, void *dest) { for (unsigned short i=0; i