home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xvirtscr.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  842b  |  32 lines

  1. #if !defined( __XVIRTUALSCREEN_HPP__ )
  2. #define __XVIRTUALSCREEN_HPP__
  3.  
  4. #include <xheaders.h>
  5. #include "xobject.h"
  6. #include <mmioos2.h>
  7. #include <dive.h>
  8. #include <fourcc.h>
  9. #include "xgamexc.h"
  10.  
  11.  
  12. class _export_ XVirtualScreen : public XObject
  13. {
  14.         private:
  15.                 USHORT  usWidth, usHeight;
  16.                 BYTE*   pbBuffer;
  17.  
  18.         public:
  19.                 // ctor/dtor
  20.                          XVirtualScreen( USHORT usWidth, USHORT usHeight );
  21.                 virtual ~XVirtualScreen();
  22.  
  23.                 // return width and height
  24.                 inline USHORT GetWidth( void )  { return usWidth; }
  25.                 inline USHORT GetHeight( void ) { return usHeight; }
  26.  
  27.                 // get pointer to the buffer
  28.                 inline BYTE* GetBuffer( void )  { return pbBuffer; }
  29. };
  30.  
  31. #endif
  32.