home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / gamesystem / includes / gs_visual.h < prev   
Encoding:
C/C++ Source or Header  |  2000-05-01  |  959 b   |  50 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    gsCVisual
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    12/03/00
  8. //
  9. // Base:    gsCObject
  10. //
  11. // Derived:    gsCScreen
  12. //            gsCImage
  13. //
  14. //-------------------------------------------------------------
  15.  
  16. #ifndef _INCLUDE_GS_VISUAL_H
  17. #define _INCLUDE_GS_VISUAL_H
  18.  
  19. #include "gs_types.h"
  20. #include "gs_object.h"
  21. #include "gs_point.h"
  22. #include "gs_list.h"
  23.  
  24. //-------------------------------------------------------------
  25.  
  26. class gsCVisual : public gsCObject
  27. {
  28.     private:
  29.         static gsLPDIRECTDRAW m_dd;
  30.  
  31.     protected:
  32.         static gsLPDIRECTDRAWOBJECT m_direct_draw;
  33.         static gsCList<gsCVisual *> m_active_visuals;
  34.  
  35.     public:
  36.  
  37.         gsCVisual();
  38.         virtual ~gsCVisual();
  39.  
  40.         static bool initialize();
  41.         static bool shutdown();
  42.  
  43.         gsLPDIRECTDRAWSURFACE createSurface(const gsCPoint& size);
  44. };
  45.  
  46. //-------------------------------------------------------------
  47.  
  48. #endif
  49.  
  50.