|
Darc Library
2012.11
|
#include <px_d3d9instance.h>
Public Member Functions | |
| D3D9Instance () | |
| ~D3D9Instance () | |
| DCR | D3D9Instance::Init (D3D9Configuration &_config, const char *_title, const HICON _hIcon) |
| Creates a D3D9Instance object. | |
| IDirect3DDevice9 * | getDevice () const |
| DCR | destroy () |
| Window * | getWindow () const |
| DCR | checkDeviceStatus () |
D3D9Instance class that holds and manages the Direct3D interface along with a window object.
| darc::protox::D3D9Instance::D3D9Instance | ( | ) | [inline] |
Default Constructor.
| darc::protox::D3D9Instance::~D3D9Instance | ( | ) | [inline] |
Destructor. Calls destroy().
Checks if device is lost and resets if necessary. Don't forget to reset render states.
| DCR darc::protox::D3D9Instance::D3D9Instance::Init | ( | D3D9Configuration & | _config, |
| const char * | _title, | ||
| const HICON | _hIcon | ||
| ) |
Releases all used handles and Direct3D resources.
| IDirect3DDevice9* darc::protox::D3D9Instance::getDevice | ( | ) | const [inline] |
Creates xD3DInstance object. Title and icon handle will be forwarded to the xWindow object.
| p | Pointer to a x3DParamter structure. |
| title | Title of the created window. |
| hIcon | Icon handle. |
| Window* darc::protox::D3D9Instance::getWindow | ( | ) | const [inline] |
Returns pointer to the PX_Window object.