home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / divesrc.zip / diveobj.h < prev    next >
C/C++ Source or Header  |  1996-02-22  |  1KB  |  37 lines

  1. //****************************************************************************
  2. //* DIVE Class Header                         - D.A.Braun - February 1996    *
  3. //****************************************************************************
  4.  
  5. #define INCL_WIN
  6. #define INCL_GPI
  7. #include <os2.h>
  8. #include <dive.h>
  9.  
  10. int QueryDive ();                // Does system supports DIVE?
  11.  
  12. class DIVEOBJ
  13. {
  14. private:
  15.     HDIVE H_Dive;                    // Handle for instance of DIVE
  16.     SETUP_BLITTER    D_BlitSetup;        // DIVE Blitter setup structure
  17.     ULONG        DH_Buffer;        // Handle for our DIVE buffer
  18.     ULONG        Width,Height;        // Width and height of buffer
  19.     float        X,Y,W,H;        // Location of region in window
  20.     int        bDepth;            // Byte depth of image buffer
  21.  
  22. public:
  23.     DIVEOBJ (char *fname);                // Constructor
  24.     ~DIVEOBJ ();                        // Destructor
  25.     char*    OpenBuffer ();            // Open access to the buffer
  26.     void    CloseBuffer ();            // Close access to the buffer
  27.     void    Realize_Palette  ();        // Realize system palette
  28.     void    VRN_Disable ();            // Disable visible region
  29.     void    VRN_Enable (HWND client,
  30.             HWND frame);        // Enable visible region
  31.     void    Location (float xl,float yb,
  32.             float xr,float yt);    // Set location in window
  33.     int    Blit ();            // Blit the buffer to screen
  34. };
  35.  
  36. //******************************** END ****************************************
  37.