home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacWT 0.9 / wt Source / framebuf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-18  |  1.1 KB  |  43 lines  |  [TEXT/CWIE]

  1. /*
  2. **  MacWT -- a 3d game engine for the Macintosh
  3. **  © 1995, Bill Hayden and Nikol Software
  4. **  Free for non-commercial use - address questions to the e-mail address below
  5. **
  6. **  Mail:           afn28988@freenet.ufl.edu (Bill Hayden)
  7. **    MacWT FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
  8. **  WWW Page:       http://grove.ufl.edu:80/~nikolsw
  9. **
  10. **    All of the above addresses are due to changes sometime in 1996, so stay tuned
  11. **
  12. **  based on wt, by Chris Laurel
  13. **
  14. **  This program is distributed in the hope that it will be useful,
  15. **  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. */
  18.  
  19.  
  20.  
  21. #ifndef FRAMEBUF_H_
  22. #define FRAMEBUF_H_
  23.  
  24. typedef unsigned char    int8;
  25. typedef unsigned short    int16;
  26.  
  27. typedef unsigned char    Pixel;
  28. typedef unsigned short    Pixel16;
  29.  
  30. typedef struct {
  31.     short    fb_width, fb_height;
  32.     int        fb_rbytes;
  33.     Pixel    *pixels;
  34.     Pixel16    *pixels16;
  35. } Framebuffer;
  36.  
  37.  
  38.  
  39. extern Framebuffer *NewFramebuffer(short width, short height);
  40. extern void ClearFramebuffer(Framebuffer *fb);
  41.  
  42.  
  43. #endif