Direct3D Rendering window. More...
#include <window.hpp>
Public Types | |
typedef Window_Parameters | Parameters |
Window parameters. | |
Public Member Functions | |
Window (Framework &framework, const Parameters ¶meters=Parameters()) | |
Initialize window (constructor). | |
~Window () | |
Destroy window (destructor). |
Direct3D Rendering window.
Encapsulates an additional target window. The Framework window already creates a main window. Additional windows can be created by instantiating this class.
For more information, see Windows
cube.cpp, empty.cpp, empty_class.cpp, input.cpp, and torus.cpp.
tk11::Window::Window | ( | Framework & | framework, | |
const Parameters & | parameters = Parameters() | |||
) |
Initialize window (constructor).
This constructor creates the window, the Direct3D swap chain and all other resources. The application must set up a structure with parameters before constructing a Window object. In particular, callbacks must be set in the Parameters structure, or the application will not be able to render anything to the new window.
framework | Reference to framework | |
parameters | Window parameters |
Direct3D_Error | Thrown if initialization of Direct3D failed | |
Failed_To_Create_Window | Thrown if creation of target window has failed | |
Register_Raw_Input_Failed | Thrown if mouse could not be registered as raw input device |
tk11::Window::~Window | ( | ) |
Destroy window (destructor).
Must have an explicit destructor to avoid warning C4150 and make sure, implementation object is destroyed.