home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / samples / sample13 / sample13.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-09  |  1.3 KB  |  49 lines

  1. /*
  2.  * Fire - a sample program for the XGame library
  3.  * Copyright (C) 1997 by Thomas Bonk (thomas@ghecko.saar.de).
  4.  * All rights reserved.
  5.  * Fire.hpp - class declarations
  6.  */
  7. #if !defined( __FIRE_HPP__ )
  8. #define __FIRE_HPP__
  9.  
  10. #include <stdlib.h>
  11. #include <xheaders.h>
  12. #define INCL_OOL
  13. #include "ool.h"
  14.  
  15.  
  16. class FlameThread : public XThread
  17. {
  18.         private:
  19.                 XBlitter* pBlitter;
  20.                 XPalette* pPal;
  21.                 PBYTE     pBuffer;
  22.  
  23.                 void PrepPal( void );
  24.                 void ScrollUp( void );
  25.                 void NewLine( void );
  26.  
  27.         public:
  28.                 // ctor
  29.                 FlameThread( XBlitter* pblt ) : pBlitter( pblt ), XThread() {}
  30.  
  31.                 void Init( void );
  32. };
  33.  
  34.  
  35. class FlameWindow : public XBlitterWindow
  36. {
  37.         public:
  38.                 FlameWindow( const ULONG resource,
  39.                              const char * title,
  40.                                    XBlitter* pBlitter,
  41.                              const ULONG     blitting,
  42.                              const ULONG createstyle = defaultStyle,
  43.                              const XRect& rec=XRect()  ) : XBlitterWindow( resource, title, pBlitter, createstyle, rec ) {}//blitting,
  44.                 virtual void Activate( void ) const {}
  45.                 virtual void Deactivate( void ) {}
  46. };
  47.  
  48. #endif
  49.