blob: e747e2ba199f9f54dc262689eba2ab95e27f82b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* ApplicationWindow.h
*
* Created on: 01.12.2010
* Author: sven
*/
#ifndef APPLICATIONWINDOW_H_
#define APPLICATIONWINDOW_H_
#include <string>
class ApplicationWindow {
public:
ApplicationWindow(int width,int height,int bpp);
virtual ~ApplicationWindow();
bool create();
bool destroy();
void setResolution( int width, int height );
void setColorDepth( int bpp );
void setCaption( const std::string& caption );
void setFullscreen( bool enable = true );
enum
{
OPENED_WINDOW = 0x0001,
FULL_SCREEN = 0x0002
};
private:
int mWidth;
int mHeight;
int mBpp;
std::string mCaption;
char mState;
//----------------------------------------------------------------
///
/// copy constructor and assign operator
/// set private
ApplicationWindow(const ApplicationWindow& src);
ApplicationWindow& operator=(const ApplicationWindow& src);
};
#endif /* APPLICATIONWINDOW_H_ */
|