tk11::Window Class Reference
[Windows]

Direct3D Rendering window. More...

#include <window.hpp>

Collaboration diagram for tk11::Window:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Window_Parameters Parameters
 Window parameters.

Public Member Functions

 Window (Framework &framework, const Parameters &parameters=Parameters())
 Initialize window (constructor).
 ~Window ()
 Destroy window (destructor).

Detailed Description

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

Examples:

cube.cpp, empty.cpp, empty_class.cpp, input.cpp, and torus.cpp.


Constructor & Destructor Documentation

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.

Parameters:
framework Reference to framework
parameters Window parameters
Exceptions:
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.


The documentation for this class was generated from the following file:
Tk11 Direct3D 11 Toolkit version 0.2 (SourceForge)
Copyright Florian Winter 2010 - 2010. Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Generated on Sun Apr 11 20:23:04 2010 for Tk11 by  doxygen 1.6.3