Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::protox::D3D9Instance Class Reference

#include <px_d3d9instance.h>

List of all members.

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 ()
WindowgetWindow () const
DCR checkDeviceStatus ()

Detailed Description

D3D9Instance class that holds and manages the Direct3D interface along with a window object.


Constructor & Destructor Documentation

Default Constructor.

Destructor. Calls destroy().


Member Function Documentation

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 
)

Creates a D3D9Instance object.

Detailed

Parameters:
aan integer argument.

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.

Parameters:
pPointer to a x3DParamter structure.
titleTitle of the created window.
hIconIcon handle.
Returns:
PX_OK if everything was ok, PX_ERROR if the configuration was invalid. See PROTOX debug log. Returns pointer to Direct3D this device.

Returns pointer to the PX_Window object.


The documentation for this class was generated from the following files: