Public Member Functions

ID3D9GraphicsWindow Class Reference

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


Search for all occurrences

#include <id3d9graphicswindow.h>

Inheritance diagram for ID3D9GraphicsWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Interface_ID  GetID ()
virtual LifetimeType  LifetimeControl ()
virtual LPDIRECT3DDEVICE9  GetDevice ()=0
  Get Direct3D Device from GFX.
virtual LPDIRECT3DVERTEXBUFFER9  GetVertexBuffer (UINT length, DWORD FVF)=0
  Get VertexBuffer from GFX.
virtual LPDIRECT3DINDEXBUFFER9  GetIndexBuffer (UINT length, D3DFORMAT format)=0
  Get IndexBuffer from GFX.
virtual D3DXMATRIX  GetWorldXform ()=0
  Get Transforms from GFX.
virtual D3DXMATRIX  GetViewXform ()=0
virtual D3DXMATRIX  GetProjXform ()=0
virtual D3DCOLOR  GetColor (ColorType t)=0
  Get Constant Color of specified type from GFX.
virtual Tab< D3DLIGHT9 * > *  GetLights ()=0
  Get a pointer to a 'Tab' table array of pointers to enabled Direct3D Lights from GFX.
virtual D3DMATERIAL9  GetMaterial ()=0
  Get Material from GFX.
virtual DWORD  GetTextureTiling (int texStage, int coord)=0
  Get Texture Tiling for specified texStage and texCoord from GFX.
virtual D3DXMATRIX  GetTexXform (int texStage)=0
  Get Texture Transform for specified texStage from GFX.
virtual void  GetWindowDimension (int &width, int &height)=0
  Get the current viewport dimensions.
virtual BOOL  IsAntiAliasingEnabled ()=0
  Get MSAA status from GFX.

Member Function Documentation

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

Reimplemented from BaseInterface.

{ return D3D9_GRAPHICS_WINDOW_INTERFACE_ID; }
virtual LifetimeType LifetimeControl ( ) [inline, virtual]
Remarks:
This method allows inquiries into the actual lifetime policy of a client and provide a server-controlled delete notify callback.
Returns:
One of the following LifetimeTypes:

noRelease

Do not call release, use interface as long as you like.

immediateRelease

The interface is only good for one calls. The release is implied so a call to release is not required.

wantsRelease

The clients are controlling the lifetime, so the interface needs a Release() when the client has finished. This is the default.

serverControlled

The server controls the lifetime and will use the InterfaceNotifyCallback to inform the code when it is gone.
Default Implementation:
{ return noRelease; }

Reimplemented from BaseInterface.

{ return noRelease; }
virtual LPDIRECT3DDEVICE9 GetDevice ( ) [pure virtual]

Get Direct3D Device from GFX.

virtual LPDIRECT3DVERTEXBUFFER9 GetVertexBuffer ( UINT  length,
DWORD  FVF 
) [pure virtual]

Get VertexBuffer from GFX.

Unless older Flexible Vertex Formats are in use, FVF should be zero.

virtual LPDIRECT3DINDEXBUFFER9 GetIndexBuffer ( UINT  length,
D3DFORMAT  format 
) [pure virtual]

Get IndexBuffer from GFX.

virtual D3DXMATRIX GetWorldXform ( ) [pure virtual]

Get Transforms from GFX.

virtual D3DXMATRIX GetViewXform ( ) [pure virtual]
virtual D3DXMATRIX GetProjXform ( ) [pure virtual]
virtual D3DCOLOR GetColor ( ColorType  t ) [pure virtual]

Get Constant Color of specified type from GFX.

virtual Tab<D3DLIGHT9 *>* GetLights ( ) [pure virtual]

Get a pointer to a 'Tab' table array of pointers to enabled Direct3D Lights from GFX.

virtual D3DMATERIAL9 GetMaterial ( ) [pure virtual]
virtual DWORD GetTextureTiling ( int  texStage,
int  coord 
) [pure virtual]

Get Texture Tiling for specified texStage and texCoord from GFX.

virtual D3DXMATRIX GetTexXform ( int  texStage ) [pure virtual]

Get Texture Transform for specified texStage from GFX.

virtual void GetWindowDimension ( int &  width,
int &  height 
) [pure virtual]

Get the current viewport dimensions.

Get the current viewport dimensions. This is useful for doing multi pass rendering and the off screen buffer needs to be created the same size as the viewport currently being drawn.

Parameters:
[out] width - The width of the current viewport.
[out] height - The height of the current viewport.
virtual BOOL IsAntiAliasingEnabled ( ) [pure virtual]

Get MSAA status from GFX.

Returns:
TRUE if viewport MSAA is enabled. Otherwise, return FALSE.

ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow
ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow ID3D9GraphicsWindow