home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / dreamscape / source / Dreamscape / Headers / abstract / h / quality < prev    next >
Encoding:
Text File  |  1996-07-17  |  872 b   |  34 lines

  1.  
  2. // abstract.h.quality
  3.  
  4. // Dreamscape - C++ class library for RISC OS
  5. // Copyright (c) 1996 Mark Seaborn <mseaborn@argonet.co.uk>
  6. //
  7. // This library is free software; you can redistribute it and/or
  8. // modify it under the terms of the GNU Library General Public
  9. // License as published by the Free Software Foundation; either
  10. // version 2 of the License, or (at your option) any later version.
  11. // See the Dreamscape documentation for more information.
  12.  
  13. #ifndef dreamscape_quality_H
  14. #define dreamscape_quality_H
  15.  
  16. class Quality {
  17.   unsigned code;
  18.  
  19. public:
  20.   Quality(): code(normal) {}
  21.   Quality(unsigned c): code(c) {}
  22.   ~Quality() {}
  23.  
  24.   operator unsigned() const { return code; }
  25.   Quality &operator=(unsigned c) { code = c; return *this; }
  26.  
  27.   enum { anti_aliased = 0x9000000,
  28.            normal = 0x7000000,
  29.            simple = 0x5000000,
  30.           outline = 0x3000000 };
  31. };
  32.  
  33. #endif
  34.