home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / bbs / ff887.lha / NBuff / NBuff.h < prev    next >
C/C++ Source or Header  |  1993-07-16  |  1KB  |  36 lines

  1. //===========================================================================
  2. // NBUFF.H
  3. // Include file necessary for working with NBuff.c
  4. //===========================================================================
  5.  
  6. // remove the #ifdef surrounding the #includes below if you want to #include
  7. // these files.  They will be #included automatically when you compile Nbuff.c
  8.  
  9. #ifdef NBUFF_C
  10. #include <intuition/intuition.h>
  11. #include <exec/memory.h>
  12. #include <graphics/gfxbase.h>
  13.  
  14. #include <proto/exec.h>
  15. #include <proto/graphics.h>
  16. #include <proto/intuition.h>
  17.  
  18. #ifndef NOLAYERS
  19. #include <graphics/layers.h>
  20. #include <proto/layers.h>
  21. #endif
  22. #endif
  23.  
  24.  
  25. #define NBUFS 5   // MAXIMUM number of buffers to be used.  This many buffers
  26.                   // will not be allocated unless you allocate them with
  27.                   // InitNBuff().
  28.  
  29. // function prototypes
  30.  
  31. struct RastPort *InitNBuff(struct Screen *, short, struct Window *, short);
  32. struct BitMap *getBitMap(int, int, int, short);
  33. void freeBitMap(struct BitMap *);
  34. void ShowView(register short);
  35. void FreeNBuff(struct Screen *, short, struct RastPort *, short);
  36.