Screen.h
Go to the documentation of this file.00001 00010 #ifndef __Screen_H__ 00011 #define __Screen_H__ 00012 00013 // Includes 00014 00015 // Forward declares 00016 class Bitmap; 00017 00018 00019 // Screen 00020 class Screen 00021 { 00022 public: 00023 Screen( 00024 int width, 00025 int height 00026 ); 00027 00028 ~Screen(); 00029 00030 Bitmap& GetBackBuffer(); 00031 00032 void Present( 00033 unsigned short modulate = 0xffff 00034 ); 00035 00036 00037 void SetBackgroundColor( 00038 unsigned short color 00039 ); 00040 00041 unsigned short GetBackgroundColor(); 00042 00043 00044 void SetFullscreen( 00045 bool fullscreen 00046 ); 00047 00048 bool GetFullscreen(); 00049 00050 00051 void SetInterpolationMode( 00052 bool fullscreen 00053 ); 00054 00055 bool GetInterpolationMode(); 00056 00057 00058 void SetWindowSize( 00059 int width, 00060 int height 00061 ); 00062 00063 int GetWindowWidth(); 00064 int GetWindowHeight(); 00065 00066 void MatchWindowToScreenSize(); 00067 private: 00068 Bitmap* backBuffer_; 00069 unsigned short backgroundColor_; 00070 }; 00071 00072 #endif /* __Screen_H__ */ 00073
Reproduction/republishing of any material on this site without permission is strictly prohibited.
