home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / DSMODS / CACHE.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-10  |  2.0 KB  |  50 lines

  1. /*************************************************************************
  2. **    cache.h                                **
  3. **    ---------------------------------------------------------    **
  4. **    Copyright 1986 by Compugraphic, Inc. All rights reserved.    **
  5. **************************************************************************
  6.     Product:    Intellifont Sub-System
  7.     Component:    Cache structure definitions
  8.     Author:        Ed Gavrin
  9. *************************************************************************/
  10. /*    History:                        */
  11. /* cache.h    29-Sep-86    awr added contents of lnk.h    */
  12. /* cache.h    29-Aug-86    awr combined 3 include files    */
  13. /* charl3.i    07-Jun-86    awr slot LRU added        */
  14. /* charl2.i    22-mar-86    jmm LRU for RAM sizes        */
  15. /*fm_charlist.i    26-nov-85    egv Date created        */
  16.  
  17. /*    Requires include file    bitmap.h    */
  18.  
  19. struct    dll_type {
  20.     struct dll_type    *fptr;        /* forward pointer    */
  21.     struct dll_type *bptr;        /* backward pointer    */
  22. };    /*---- struct size = 8 bytes ----*/
  23.  
  24. /*    Character data        */
  25. struct    cdata_type {
  26.     int font_id;    /* font number    of character (-1 : not set)    */
  27.     int point_size;    /* point size    of character in 1/8th points    */
  28.     int set_size;    /* set     size    of character in 1/8th points    */
  29.     int italic_angle;/* pseudo italic angle of char in 1/4 degrees    */
  30.     int rotate_angle;/* rotation      angle of char in 1/8 degrees    */
  31.     char bold;    /* bold flag    of character            */
  32.     char devnum;    /* device #    of character (0...7)        */
  33. };    /*---- struct size = 12 bytes ----*/
  34.  
  35. /*    Cache character entry        */
  36. struct    charlist_type {
  37.     struct dll_type    char_thread;    /* list of fonts for flash  8    */
  38.     struct dll_type lru_slot;    /* "    "    "    slot   8    */
  39.     struct cdata_type cd;        /* char data stuff        12    */
  40.     unsigned    total_wc;    /* word count of bitmap        2    */
  41.     struct bit_map_type *block_ptr; /* pointer to bitmap        4    */
  42. };    /*---- struct size = 34 bytes ----*/
  43.  
  44. /*    Font manager input packet    */
  45. struct    packet_type {
  46.     int            flash_pos;
  47.     struct cdata_type    p_cd;
  48.         struct charlist_type    *char_ptr;
  49. };    /*---- struct size = 18 bytes ----*/
  50.