OgreD3D9DeviceManager.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2013 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __D3D9DeviceManager_H__
29 #define __D3D9DeviceManager_H__
30 
31 #include "OgreD3D9Prerequisites.h"
32 
33 namespace Ogre {
34 
35  class D3D9Device;
36  class D3D9RenderWindow;
37 
41  {
42 
43  // Interface.
44  public:
45  void setActiveDevice (D3D9Device* device);
46  D3D9Device* getActiveDevice ();
47  void setActiveRenderTargetDevice (D3D9Device* device);
48  D3D9Device* getActiveRenderTargetDevice ();
49  UINT getDeviceCount ();
50  D3D9Device* getDevice (UINT index);
51  void linkRenderWindow (D3D9RenderWindow* renderWindow);
52  void destroyInactiveRenderDevices ();
53  void notifyOnDeviceDestroy (D3D9Device* device);
54  D3D9Device* getDeviceFromD3D9Device (IDirect3DDevice9* d3d9Device);
55 
56  public:
59 
60  protected:
62  typedef DeviceList::iterator DeviceIterator;
63  typedef DeviceList::const_iterator ConstDeviceIterator;
65 
66  protected:
67  D3D9Device* selectDevice (D3D9RenderWindow* renderWindow, D3D9RenderWindowList& renderWindowsGroup);
68  D3D9Driver* findDriver (D3D9RenderWindow* renderWindow);
69 
70 
74  };
75 }
76 #endif
Ogre::D3D9Device
High level interface of Direct3D9 Device.
Definition: OgreD3D9Device.h:42
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::D3D9DeviceManager::DeviceIterator
DeviceList::iterator DeviceIterator
Definition: OgreD3D9DeviceManager.h:62
OgreD3D9Prerequisites.h
Ogre::D3D9Driver
Definition: OgreD3D9Driver.h:40
Ogre::D3D9DeviceManager::DeviceList
vector< D3D9Device * >::type DeviceList
Definition: OgreD3D9DeviceManager.h:61
Ogre::D3D9DeviceManager
Device manager interface.
Definition: OgreD3D9DeviceManager.h:40
Ogre::D3D9DeviceManager::mActiveRenderWindowDevice
D3D9Device * mActiveRenderWindowDevice
Definition: OgreD3D9DeviceManager.h:73
Ogre::D3D9DeviceManager::mRenderDevices
DeviceList mRenderDevices
Definition: OgreD3D9DeviceManager.h:71
Ogre::D3D9DeviceManager::ConstDeviceIterator
DeviceList::const_iterator ConstDeviceIterator
Definition: OgreD3D9DeviceManager.h:63
Ogre::D3D9DeviceManager::mActiveDevice
D3D9Device * mActiveDevice
Definition: OgreD3D9DeviceManager.h:72
_OgreD3D9Export
#define _OgreD3D9Export
Definition: OgreD3D9Prerequisites.h:118
Ogre::D3D9RenderWindow
Definition: OgreD3D9RenderWindow.h:37
Ogre::vector
Definition: OgrePrerequisites.h:491
Ogre::D3D9DeviceManager::D3D9RenderWindowList
vector< D3D9RenderWindow * >::type D3D9RenderWindowList
Definition: OgreD3D9DeviceManager.h:64

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15