#include <Window.h>
Public Methods | |
| Window () | |
| Constructor. | |
| ~Window () | |
| Destructor. | |
| void | registerClass (HINSTANCE hInst, const char *ATitle) |
| Registers the class with Windows. | |
| void | initInstance (HINSTANCE hInst, int nCmdShow, const char *ATitle, const char *WTitle, int w, int h) |
| Initializes the window. | |
| int | getWidth () const |
| Returns the width of the window. | |
| int | getHeight () const |
| Returns the height of the window. | |
| const HWND & | getHwnd () const |
| Returns a reference to hWnd. | |
| const HINSTANCE & | get_hInstance () const |
| Returns a refrence to hInstance. | |
| void | setWindowed (BOOL newWindowed) |
| Set whether window is in windowed mode or not. | |
| BOOL | getWindowed () const |
| Returns TRUE if the window is in windowed mode. | |
| bool | toggleWindowed () |
| If the Window is in windowed mode, go to fullscreen, else go back to windowed mode. | |
|
|
Returns a refrence to hInstance.
|
|
|
Returns a reference to hWnd.
|
|
|
Returns TRUE if the window is in windowed mode.
|
|
||||||||||||||||||||||||||||
|
Initializes the window. Throws GameException if it fails.
|
|
||||||||||||
|
Registers the class with Windows.
|
|
|
Set whether window is in windowed mode or not.
|
|
|
If the Window is in windowed mode, go to fullscreen, else go back to windowed mode.
|
1.2.18