ID3D10GraphicsWindow Class Reference
 
 
 
ID3D10GraphicsWindow Class Reference

This reference page is linked to from the following overview topics: Determining DirectX Version, Accessing the DirectX Device.


#include <IDX10HardwareRenderer.h>

Inheritance diagram for ID3D10GraphicsWindow:
BaseInterface InterfaceServer MaxHeapOperators

Class Description

Main entry point to access the D3D 10 GFX layer.

Public Member Functions

virtual Interface_ID  GetID ()
virtual ID3D10Device *  GetDevice ()=0
  Access to the main D3D 10 device.
virtual D3DXMATRIX  GetWorldXform () const =0
  Access the World Matrix.
virtual D3DXMATRIX  GetViewXform () const =0
  Access the View Matrix.
virtual D3DXMATRIX  GetProjXform () const =0
  Access the Projection Matrix.
virtual void  GetWindowDimension (int *width, int *height)=0
  Access the current viewport width and height.
virtual D3D10SceneLight GetLight (int index)=0
  Access the light used in the viewport.

Member Function Documentation

virtual Interface_ID GetID ( ) [inline, virtual]
Remarks:
This method returns the unique interface ID.

Reimplemented from BaseInterface.

virtual ID3D10Device* GetDevice ( ) [pure virtual]

Access to the main D3D 10 device.

Returns:
The main D3D 10 device used by the GFX layer
virtual D3DXMATRIX GetWorldXform ( ) const [pure virtual]

Access the World Matrix.

Returns:
The World Matrix
virtual D3DXMATRIX GetViewXform ( ) const [pure virtual]

Access the View Matrix.

Returns:
The View Matrix
virtual D3DXMATRIX GetProjXform ( ) const [pure virtual]

Access the Projection Matrix.

Returns:
The World Matrix
virtual void GetWindowDimension ( int *  width,
int *  height 
) [pure virtual]

Access the current viewport width and height.

Parameters:
*width A pointer to the buffer to receive the width value
*height A pointer to the buffer to receive the height value
virtual D3D10SceneLight* GetLight ( int  index ) [pure virtual]

Access the light used in the viewport.

Currently there are a total of 8 lights used,

Parameters:
index The index of the light to access
Returns:
A pointer to the light structure. This can be NULL if an invalid index is used.