Ogre::D3D9Device Class Reference

High level interface of Direct3D9 Device. More...

`#include <OgreD3D9Device.h>`

Inheritance diagram for Ogre::D3D9Device:
[legend]

List of all members.

## Classes

struct | RenderWindowResources

## Public Member Functions

void | attachRenderWindow (D3D9RenderWindow *renderWindow)
void | detachRenderWindow (D3D9RenderWindow *renderWindow)
bool | acquire ()
void | release ()
void | destroy ()
bool | isDeviceLost ()
IDirect3DDevice9 * | getD3D9Device ()
UINT | getAdapterNumber () const
D3DDEVTYPE | getDeviceType () const
bool | isMultihead () const
bool | isAutoDepthStencil () const
bool | isFullScreen () const
const D3DCAPS9 & | getD3D9DeviceCaps () const
D3DFORMAT | getBackBufferFormat () const
bool | validate (D3D9RenderWindow *renderWindow)
void | invalidate (D3D9RenderWindow *renderWindow)
void | present (D3D9RenderWindow *renderWindow)
IDirect3DSurface9 * | getDepthBuffer (D3D9RenderWindow *renderWindow)
IDirect3DSurface9 * | getBackBuffer (D3D9RenderWindow *renderWindow)
uint | getRenderWindowCount () const
D3D9RenderWindow * | getRenderWindow (uint index)
uint | getLastPresentFrame () const
void | setAdapterOrdinalIndex (D3D9RenderWindow *renderWindow, uint adapterOrdinalInGroupIndex)
void | copyContentsToMemory (D3D9RenderWindow *window, const PixelBox &dst, RenderTarget::FrameBuffer buffer)
void | clearDeviceStreams ()
| D3D9Device (D3D9DeviceManager *deviceManager, UINT adapterNumber, HMONITOR hMonitor, D3DDEVTYPE devType, DWORD behaviorFlags)
| ~D3D9Device ()
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info
void * | operator new[] (size_t sz)
void | operator delete (void *ptr)
void | operator delete (void *ptr, void *)
void | operator delete (void *ptr, const char *, int, const char *)
void | operator delete[] (void *ptr)
void | operator delete[] (void *ptr, const char *, int, const char *)

## Protected Types

typedef map< D3D9RenderWindow *, RenderWindowResources * > ::type | RenderWindowToResourcesMap
typedef RenderWindowToResourcesMap::iterator | RenderWindowToResourcesIterator

## Protected Member Functions

RenderWindowToResourcesIterator | getRenderWindowIterator (D3D9RenderWindow *renderWindow)
bool | acquire (D3D9RenderWindow *renderWindow)
bool | reset ()
void | updatePresentationParameters ()
void | updateRenderWindowsIndices ()
void | createD3D9Device ()
void | releaseD3D9Device ()
void | releaseRenderWindowResources (RenderWindowResources *renderWindowResources)
void | acquireRenderWindowResources (RenderWindowToResourcesIterator it)
void | setupDeviceStates ()
void | notifyDeviceLost ()
void | validateFocusWindow ()
void | validateBackBufferSize (D3D9RenderWindow *renderWindow)
bool | validateDisplayMonitor (D3D9RenderWindow *renderWindow)
bool | validateDeviceState (D3D9RenderWindow *renderWindow)
bool | isSwapChainWindow (D3D9RenderWindow *renderWindow)
D3D9RenderWindow * | getPrimaryWindow ()
void | setSharedWindowHandle (HWND hSharedHWND)

## Protected Attributes

D3D9DeviceManager * | mDeviceManager
IDirect3DDevice9 * | mDevice
UINT | mAdapterNumber
HMONITOR | mMonitor
D3DDEVTYPE | mDeviceType
HWND | mFocusWindow
DWORD | mBehaviorFlags
D3DPRESENT_PARAMETERS * | mPresentationParams
UINT | mPresentationParamsCount
D3DCAPS9 | mD3D9DeviceCaps
bool | mD3D9DeviceCapsValid
D3DDEVICE_CREATION_PARAMETERS | mCreationParams
uint | mLastPresentFrame
bool | mDeviceLost
RenderWindowToResourcesMap | mMapRenderWindowToResources

## Static Protected Attributes

static HWND | msSharedFocusWindow

## Friends

class | D3D9DeviceManager
class | D3D9RenderSystem

## Detailed Description

High level interface of Direct3D9 Device.

Provide useful methods for device handling.

Definition at line 42 of file OgreD3D9Device.h.

## Member Typedef Documentation

typedef RenderWindowToResourcesMap::iterator Ogre::D3D9Device::RenderWindowToResourcesIterator `[protected]`

Definition at line 120 of file OgreD3D9Device.h.

typedef map<D3D9RenderWindow*, RenderWindowResources*>::type Ogre::D3D9Device::RenderWindowToResourcesMap `[protected]`

Definition at line 119 of file OgreD3D9Device.h.

## Constructor & Destructor Documentation

Ogre::D3D9Device::D3D9Device | ( | D3D9DeviceManager * | deviceManager,
|  | UINT | adapterNumber,
|  | HMONITOR | hMonitor,
|  | D3DDEVTYPE | devType,
|  | DWORD | behaviorFlags
| ) |  |

Ogre::D3D9Device::~D3D9Device | ( |  | ) |

## Member Function Documentation

bool Ogre::D3D9Device::acquire | ( |  | ) |

bool Ogre::D3D9Device::acquire | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

void Ogre::D3D9Device::acquireRenderWindowResources | ( | RenderWindowToResourcesIterator | it | ) | `[protected]`

void Ogre::D3D9Device::attachRenderWindow | ( | D3D9RenderWindow * | renderWindow | ) |

void Ogre::D3D9Device::clearDeviceStreams | ( |  | ) |

void Ogre::D3D9Device::copyContentsToMemory | ( | D3D9RenderWindow * | window,
|  | const PixelBox & | dst,
|  | RenderTarget::FrameBuffer | buffer
| ) |  |

void Ogre::D3D9Device::createD3D9Device | ( |  | ) | `[protected]`

void Ogre::D3D9Device::destroy | ( |  | ) |

void Ogre::D3D9Device::detachRenderWindow | ( | D3D9RenderWindow * | renderWindow | ) |

UINT Ogre::D3D9Device::getAdapterNumber | ( |  | ) | const

IDirect3DSurface9* Ogre::D3D9Device::getBackBuffer | ( | D3D9RenderWindow * | renderWindow | ) |

D3DFORMAT Ogre::D3D9Device::getBackBufferFormat | ( |  | ) | const

IDirect3DDevice9* Ogre::D3D9Device::getD3D9Device | ( |  | ) |

const D3DCAPS9& Ogre::D3D9Device::getD3D9DeviceCaps | ( |  | ) | const

IDirect3DSurface9* Ogre::D3D9Device::getDepthBuffer | ( | D3D9RenderWindow * | renderWindow | ) |

D3DDEVTYPE Ogre::D3D9Device::getDeviceType | ( |  | ) | const

uint Ogre::D3D9Device::getLastPresentFrame | ( |  | ) | const

Definition at line 77 of file OgreD3D9Device.h.

D3D9RenderWindow* Ogre::D3D9Device::getPrimaryWindow | ( |  | ) | `[protected]`

D3D9RenderWindow* Ogre::D3D9Device::getRenderWindow | ( | uint | index | ) |

uint Ogre::D3D9Device::getRenderWindowCount | ( |  | ) | const

RenderWindowToResourcesIterator Ogre::D3D9Device::getRenderWindowIterator | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

void Ogre::D3D9Device::invalidate | ( | D3D9RenderWindow * | renderWindow | ) |

bool Ogre::D3D9Device::isAutoDepthStencil | ( |  | ) | const

bool Ogre::D3D9Device::isDeviceLost | ( |  | ) |

bool Ogre::D3D9Device::isFullScreen | ( |  | ) | const

bool Ogre::D3D9Device::isMultihead | ( |  | ) | const

bool Ogre::D3D9Device::isSwapChainWindow | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

void Ogre::D3D9Device::notifyDeviceLost | ( |  | ) | `[protected]`

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | `[inherited]`

Definition at line 95 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  | `[inherited]`

Definition at line 101 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  | `[inherited]`

Definition at line 107 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | `[inherited]`

Definition at line 112 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  | `[inherited]`

Definition at line 118 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  | `[inherited]`

operator new, with debug line info

Definition at line 67 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | `[inherited]`

Definition at line 72 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | void * | ptr
| ) |  | `[inherited]`

placement operator new

Definition at line 78 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  | `[inherited]`

array operator new, with debug line info

Definition at line 85 of file OgreMemoryAllocatedObject.h.

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | `[inherited]`

Definition at line 90 of file OgreMemoryAllocatedObject.h.

void Ogre::D3D9Device::present | ( | D3D9RenderWindow * | renderWindow | ) |

void Ogre::D3D9Device::release | ( |  | ) |

void Ogre::D3D9Device::releaseD3D9Device | ( |  | ) | `[protected]`

void Ogre::D3D9Device::releaseRenderWindowResources | ( | RenderWindowResources * | renderWindowResources | ) | `[protected]`

bool Ogre::D3D9Device::reset | ( |  | ) | `[protected]`

void Ogre::D3D9Device::setAdapterOrdinalIndex | ( | D3D9RenderWindow * | renderWindow,
|  | uint | adapterOrdinalInGroupIndex
| ) |  |

void Ogre::D3D9Device::setSharedWindowHandle | ( | HWND | hSharedHWND | ) | `[protected]`

void Ogre::D3D9Device::setupDeviceStates | ( |  | ) | `[protected]`

void Ogre::D3D9Device::updatePresentationParameters | ( |  | ) | `[protected]`

void Ogre::D3D9Device::updateRenderWindowsIndices | ( |  | ) | `[protected]`

bool Ogre::D3D9Device::validate | ( | D3D9RenderWindow * | renderWindow | ) |

void Ogre::D3D9Device::validateBackBufferSize | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

bool Ogre::D3D9Device::validateDeviceState | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

bool Ogre::D3D9Device::validateDisplayMonitor | ( | D3D9RenderWindow * | renderWindow | ) | `[protected]`

void Ogre::D3D9Device::validateFocusWindow | ( |  | ) | `[protected]`

## Friends And Related Function Documentation

friend class D3D9DeviceManager `[friend]`

Definition at line 149 of file OgreD3D9Device.h.

friend class D3D9RenderSystem `[friend]`

Definition at line 150 of file OgreD3D9Device.h.

## Member Data Documentation

UINT Ogre::D3D9Device::mAdapterNumber `[protected]`

Definition at line 94 of file OgreD3D9Device.h.

DWORD Ogre::D3D9Device::mBehaviorFlags `[protected]`

Definition at line 99 of file OgreD3D9Device.h.

D3DDEVICE_CREATION_PARAMETERS Ogre::D3D9Device::mCreationParams `[protected]`

Definition at line 105 of file OgreD3D9Device.h.

D3DCAPS9 Ogre::D3D9Device::mD3D9DeviceCaps `[protected]`

Definition at line 103 of file OgreD3D9Device.h.

bool Ogre::D3D9Device::mD3D9DeviceCapsValid `[protected]`

Definition at line 104 of file OgreD3D9Device.h.

IDirect3DDevice9* Ogre::D3D9Device::mDevice `[protected]`

Definition at line 93 of file OgreD3D9Device.h.

bool Ogre::D3D9Device::mDeviceLost `[protected]`

Definition at line 107 of file OgreD3D9Device.h.

D3D9DeviceManager* Ogre::D3D9Device::mDeviceManager `[protected]`

Definition at line 92 of file OgreD3D9Device.h.

D3DDEVTYPE Ogre::D3D9Device::mDeviceType `[protected]`

Definition at line 96 of file OgreD3D9Device.h.

HWND Ogre::D3D9Device::mFocusWindow `[protected]`

Definition at line 98 of file OgreD3D9Device.h.

uint Ogre::D3D9Device::mLastPresentFrame `[protected]`

Definition at line 106 of file OgreD3D9Device.h.

RenderWindowToResourcesMap Ogre::D3D9Device::mMapRenderWindowToResources `[protected]`

Definition at line 122 of file OgreD3D9Device.h.

HMONITOR Ogre::D3D9Device::mMonitor `[protected]`

Definition at line 95 of file OgreD3D9Device.h.

D3DPRESENT_PARAMETERS* Ogre::D3D9Device::mPresentationParams `[protected]`

Definition at line 100 of file OgreD3D9Device.h.

UINT Ogre::D3D9Device::mPresentationParamsCount `[protected]`

Definition at line 102 of file OgreD3D9Device.h.

HWND Ogre::D3D9Device::msSharedFocusWindow `[static, protected]`

Definition at line 97 of file OgreD3D9Device.h.

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

- OgreD3D9Device.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Sep 2 2012 07:27:47