home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.1 / JimmDemos / DemoSource / dview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  807 b   |  27 lines

  1. /* dview.h -- double-buffer views
  2.  * Copyright (c) 1988, I and I Computing, and James Mackraz.
  3.  *
  4.  *
  5.  * Executables based on this information may be used in software
  6.  * for Commodore Amiga computers.  All other rights reserved.
  7.  *
  8.  * This information is provided "as is"; no warranties are made.
  9.  * All use is at your own risk, and no liability or responsibility is assumed.
  10.  */
  11.  
  12. struct DoubleView {
  13.     int                dv_Current;            /* values either 0 or 1    */
  14.     struct RastPort    *dv_RastPorts[2];    /* draw into the Views    */
  15.     struct View        *dv_Views[2];
  16.     int                dv_Width;
  17.     int                dv_Height;
  18.     int                dv_Signal;            /* video sync signal    */
  19.     long            dv_SigMask;            /* shifted video signal    */
  20. };
  21.  
  22. struct RastPort *selectDV();
  23. struct RastPort *swapDV();
  24. struct UCopList    *createUCop();
  25.  
  26. #define DV_CURRENT( dv )    ( (dv)->dv_Current )
  27.