TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Typedefs | Enumerations | Enumerator | Functions
niUI Graphics D3D9

Detailed Description

Classes

struct  iD3D9Texture
 D3D9 texture. More...
 
struct  iD3D9LostDeviceSink
 D3D9 Lost device sink. More...
 
struct  iD3D9Graphics
 D3D9 Graphics. More...
 
struct  iD3D9VertexArray
 Direct3D9 vertex array. More...
 
struct  iD3D9IndexArray
 Direct3D9 index array. More...
 
struct  iD3D9ShaderVertex
 Direct3D9 vertex shader. More...
 
struct  iD3D9ShaderPixel
 Direct3D9 pixel shader. More...
 
struct  iD3D9OcclusionQuery
 Direct3D9 occlusion query. More...
 

Typedefs

typedef SinkList
< iD3D9LostDeviceSink > 
tD3D9LostDeviceSinkLst
 D3D9 Lost device sink list. More...
 

Enumerations

enum  eD3D9ResourceType {
  eD3D9ResourceType_Invalid,
  eD3D9ResourceType_Surface,
  eD3D9ResourceType_Volume,
  eD3D9ResourceType_Texture2D,
  eD3D9ResourceType_TextureCube,
  eD3D9ResourceType_TextureVolume,
  eD3D9ResourceType_VertexArray,
  eD3D9ResourceType_IndexArray,
  eD3D9ResourceType_ForceDWORD
}
 D3D9 resource type. More...
 

Functions

virtual eD3D9ResourceType GetResourceType () const =0
 Get the resource type. More...
 
virtual IDirect3DBaseTexture9 * GetTexture () const =0
 Get the base texture. {NoAutomation}. More...
 
virtual IDirect3DSurface9 * GetSurface () const =0
 Get the surface. {NoAutomation}. More...
 
virtual tU32 GetSubTextureFace () const =0
 Get the sub texture face/slice. More...
 
virtual tU32 GetSubTextureLevel () const =0
 Get the sub texture level. More...
 
virtual IDirect3DSurface9 * GetSurfaceLevel (tU32 anLevel) const =0
 Get the surface at the specified level. {NoAutomation}. More...
 
virtual IDirect3DVolume9 * GetVolumeLevel (tU32 anLevel) const =0
 Get the volume at the specified level. {NoAutomation}. More...
 
virtual tBool OnLostDevice (IDirect3DDevice9 *apDevice)=0
 Called when the device is lost. {NoAutomation}. More...
 
virtual tBool OnResetDevice (IDirect3DDevice9 *apDevice)=0
 Called when the device is reset. {NoAutomation}. More...
 
virtual void Cleanup ()=0
 {NoAutomation} More...
 
virtual tBool InitializeBaseTexture (IDirect3DBaseTexture9 *apTexture)=0
 {NoAutomation} More...
 
virtual tBool InitializeSurface (IDirect3DBaseTexture9 *apTexture, IDirect3DSurface9 *apSurface, tU32 anFace, tU32 anLevel)=0
 {NoAutomation} More...
 
virtual tBool InitializeVolume (IDirect3DVolumeTexture9 *apTexture, IDirect3DVolume9 *apVolume, tU32 anLevel)=0
 {NoAutomation} More...
 
virtual tBool Create (IDirect3DDevice9 *apDevice, eBitmapType aType, D3DFORMAT aFormat, tU32 anWidth, tU32 anHeight, tU32 anDepth, tU32 anNumMipMaps, tTextureFlags aFlags)=0
 {NoAutomation} More...
 
virtual void OnD3D9LostDeviceSink_LostDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is lost. {NoAutomation}. More...
 
virtual void OnD3D9LostDeviceSink_ResetDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is reset. {NoAutomation}. More...
 
virtual IDirect3D9 * GetD3D9 () const =0
 Get the D3D9 object. {NoAutomation}. More...
 
virtual IDirect3DDevice9 * GetD3D9Device () const =0
 Get the D3D9 device. {NoAutomation}. More...
 
virtual const D3DCAPS9 & GetD3D9Caps () const =0
 Get the device's caps. {NoAutomation}. More...
 
virtual IDirect3DStateBlock9 * GetD3D9DefaultDeviceStates () const =0
 Get the default d3d9 device states. {NoAutomation}. More...
 
virtual IDirect3DStateBlock9 * GetD3D9DefaultPixelStates () const =0
 Get the default d3d9 pixel states. {NoAutomation}. More...
 
virtual IDirect3DStateBlock9 * GetD3D9DefaultVertexStates () const =0
 Get the default d3d9 vertex states. {NoAutomation}. More...
 
virtual IDirect3DSurface9 * CreateD3D9Surface (tU32 anW, tU32 anH, D3DFORMAT aFmt, D3DPOOL aPool)=0
 Creates a D3D9 surface. {NoAutomation}. More...
 
virtual iBitmap2D * LockD3D9Surface (IDirect3DSurface9 *apSurf, DWORD aLockFlags)=0
 Lock a full D3D9 surface an return it has a memory bitmap. More...
 
virtual IDirect3DSurface9 * CreateD3D9SurfaceFromBitmap (iBitmap2D *apBmp, D3DFORMAT aFmt, D3DPOOL aPool)=0
 Creates a D3D9 surface from a bitmap. {NoAutomation}. More...
 
virtual tD3D9LostDeviceSinkLst * GetLostDeviceSinkList () const =0
 Get the lost device sink list. {NoAutomation}. More...
 
virtual iTexture * CreateD3D9TextureEmpty (iHString *ahspName)=0
 Creates an empty texture for which the appropriate iD3D9Texture Initialize method has still to be called. {NoAutomation}. More...
 
virtual iTexture * CreateD3D9TextureBase (iHString *ahspName, IDirect3DBaseTexture9 *apTexture)=0
 Creates a texture that 'wraps' the specified IDirect3DTexture9 object. {NoAutomation}. More...
 
virtual IDirect3DVertexBuffer9 * GetVertexBuffer () const =0
 Get the D3D vertex buffer object. {NoAutomation}. More...
 
virtual tU32 GetD3D9FVF () const =0
 Get the D3D9 FVF. More...
 
virtual tBool OnLostDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is lost. {NoAutomation}. More...
 
virtual tBool OnResetDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is reset. {NoAutomation}. More...
 
virtual IDirect3DIndexBuffer9 * GetIndexBuffer () const =0
 Get the D3D index buffer object. {NoAutomation}. More...
 
virtual tBool OnLostDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is lost. {NoAutomation}. More...
 
virtual tBool OnResetDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is reset. {NoAutomation}. More...
 
virtual IDirect3DVertexShader9 * GetVertexShader () const =0
 Get the D3D vertex shader object. {NoAutomation}. More...
 
virtual ID3DXBuffer * GetData () const =0
 Get the shader data object. {NoAutomation}. More...
 
virtual tBool GetHasConstants () const =0
 Get whether the shader has constants. More...
 
virtual IDirect3DPixelShader9 * GetPixelShader () const =0
 Get the D3D pixel shader object. {NoAutomation}. More...
 
virtual ID3DXBuffer * GetData () const =0
 Get the shader data object. {NoAutomation}. More...
 
virtual tBool GetHasConstants () const =0
 Get whether the shader has constants. {NoAutomation}. More...
 
virtual IDirect3DQuery9 * GetQuery () const =0
 Get the D3D query object. {NoAutomation}. More...
 
virtual tBool OnLostDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is lost. {NoAutomation}. More...
 
virtual tBool OnResetDevice (IDirect3DDevice9 *apDevice)=0
 Called when a device is reset. {NoAutomation}. More...
 

Typedef Documentation

typedef SinkList<iD3D9LostDeviceSink> tD3D9LostDeviceSinkLst

D3D9 Lost device sink list.

Enumeration Type Documentation

enum eD3D9ResourceType

D3D9 resource type.

Enumerator
eD3D9ResourceType_Invalid 

Unknown/invalid type.

eD3D9ResourceType_Surface 

Surface type.

eD3D9ResourceType_Volume 

Volume type.

eD3D9ResourceType_Texture2D 

2D texture type.

eD3D9ResourceType_TextureCube 

Cube texture type.

eD3D9ResourceType_TextureVolume 

Volume texture type.

eD3D9ResourceType_VertexArray 

Vertex array/buffer type.

eD3D9ResourceType_IndexArray 

Index array/buffer type.

eD3D9ResourceType_ForceDWORD 

Function Documentation

virtual eD3D9ResourceType GetResourceType ( ) const
pure virtual

Get the resource type.

virtual IDirect3DBaseTexture9* GetTexture ( ) const
pure virtual

Get the base texture. {NoAutomation}.

virtual IDirect3DSurface9* GetSurface ( ) const
pure virtual

Get the surface. {NoAutomation}.

virtual tU32 GetSubTextureFace ( ) const
pure virtual

Get the sub texture face/slice.

virtual tU32 GetSubTextureLevel ( ) const
pure virtual

Get the sub texture level.

virtual IDirect3DSurface9* GetSurfaceLevel ( tU32  anLevel) const
pure virtual

Get the surface at the specified level. {NoAutomation}.

virtual IDirect3DVolume9* GetVolumeLevel ( tU32  anLevel) const
pure virtual

Get the volume at the specified level. {NoAutomation}.

virtual tBool OnLostDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when the device is lost. {NoAutomation}.

virtual tBool OnResetDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when the device is reset. {NoAutomation}.

virtual void Cleanup ( )
pure virtual

{NoAutomation}

virtual tBool InitializeBaseTexture ( IDirect3DBaseTexture9 *  apTexture)
pure virtual

{NoAutomation}

virtual tBool InitializeSurface ( IDirect3DBaseTexture9 *  apTexture,
IDirect3DSurface9 *  apSurface,
tU32  anFace,
tU32  anLevel 
)
pure virtual

{NoAutomation}

virtual tBool InitializeVolume ( IDirect3DVolumeTexture9 *  apTexture,
IDirect3DVolume9 *  apVolume,
tU32  anLevel 
)
pure virtual

{NoAutomation}

virtual tBool Create ( IDirect3DDevice9 *  apDevice,
eBitmapType  aType,
D3DFORMAT  aFormat,
tU32  anWidth,
tU32  anHeight,
tU32  anDepth,
tU32  anNumMipMaps,
tTextureFlags  aFlags 
)
pure virtual

{NoAutomation}

virtual void OnD3D9LostDeviceSink_LostDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is lost. {NoAutomation}.

virtual void OnD3D9LostDeviceSink_ResetDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is reset. {NoAutomation}.

virtual IDirect3D9* GetD3D9 ( ) const
pure virtual

Get the D3D9 object. {NoAutomation}.

virtual IDirect3DDevice9* GetD3D9Device ( ) const
pure virtual

Get the D3D9 device. {NoAutomation}.

virtual const D3DCAPS9& GetD3D9Caps ( ) const
pure virtual

Get the device's caps. {NoAutomation}.

virtual IDirect3DStateBlock9* GetD3D9DefaultDeviceStates ( ) const
pure virtual

Get the default d3d9 device states. {NoAutomation}.

virtual IDirect3DStateBlock9* GetD3D9DefaultPixelStates ( ) const
pure virtual

Get the default d3d9 pixel states. {NoAutomation}.

virtual IDirect3DStateBlock9* GetD3D9DefaultVertexStates ( ) const
pure virtual

Get the default d3d9 vertex states. {NoAutomation}.

virtual IDirect3DSurface9* CreateD3D9Surface ( tU32  anW,
tU32  anH,
D3DFORMAT  aFmt,
D3DPOOL  aPool 
)
pure virtual

Creates a D3D9 surface. {NoAutomation}.

virtual iBitmap2D* LockD3D9Surface ( IDirect3DSurface9 *  apSurf,
DWORD  aLockFlags 
)
pure virtual

Lock a full D3D9 surface an return it has a memory bitmap.

Remarks
IDirect3DSurface9::UnlockRect still needs to be called when you are done with the memory bitmap.
Once IDirect3DSurface9::UnlockRect is called the bitmap is considered invalid and using it will result in access violations. {NoAutomation}
virtual IDirect3DSurface9* CreateD3D9SurfaceFromBitmap ( iBitmap2D apBmp,
D3DFORMAT  aFmt,
D3DPOOL  aPool 
)
pure virtual

Creates a D3D9 surface from a bitmap. {NoAutomation}.

virtual tD3D9LostDeviceSinkLst* GetLostDeviceSinkList ( ) const
pure virtual

Get the lost device sink list. {NoAutomation}.

virtual iTexture* CreateD3D9TextureEmpty ( iHString ahspName)
pure virtual

Creates an empty texture for which the appropriate iD3D9Texture Initialize method has still to be called. {NoAutomation}.

virtual iTexture* CreateD3D9TextureBase ( iHString ahspName,
IDirect3DBaseTexture9 *  apTexture 
)
pure virtual

Creates a texture that 'wraps' the specified IDirect3DTexture9 object. {NoAutomation}.

virtual IDirect3DVertexBuffer9* GetVertexBuffer ( ) const
pure virtual

Get the D3D vertex buffer object. {NoAutomation}.

virtual tU32 GetD3D9FVF ( ) const
pure virtual

Get the D3D9 FVF.

virtual tBool OnLostDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is lost. {NoAutomation}.

virtual tBool OnResetDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is reset. {NoAutomation}.

virtual IDirect3DIndexBuffer9* GetIndexBuffer ( ) const
pure virtual

Get the D3D index buffer object. {NoAutomation}.

virtual tBool OnLostDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is lost. {NoAutomation}.

virtual tBool OnResetDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is reset. {NoAutomation}.

virtual IDirect3DVertexShader9* GetVertexShader ( ) const
pure virtual

Get the D3D vertex shader object. {NoAutomation}.

virtual ID3DXBuffer* GetData ( ) const
pure virtual

Get the shader data object. {NoAutomation}.

virtual tBool GetHasConstants ( ) const
pure virtual

Get whether the shader has constants.

virtual IDirect3DPixelShader9* GetPixelShader ( ) const
pure virtual

Get the D3D pixel shader object. {NoAutomation}.

virtual ID3DXBuffer* GetData ( ) const
pure virtual

Get the shader data object. {NoAutomation}.

virtual tBool GetHasConstants ( ) const
pure virtual

Get whether the shader has constants. {NoAutomation}.

virtual IDirect3DQuery9* GetQuery ( ) const
pure virtual

Get the D3D query object. {NoAutomation}.

virtual tBool OnLostDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is lost. {NoAutomation}.

virtual tBool OnResetDevice ( IDirect3DDevice9 *  apDevice)
pure virtual

Called when a device is reset. {NoAutomation}.