Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OgreD3D8Driver.h

Go to the documentation of this file.
00001 #ifndef __D3D8DRIVER_H__
00002 #define __D3D8DRIVER_H__
00003 
00004 // Precomipler options
00005 #include "OgreD3D8Prerequisites.h"
00006 
00007 // Declaration
00008 #include "OgreString.h"
00009 
00010 #include "OgreNoMemoryMacros.h"
00011 #include <d3d8.h>
00012 #include <d3dx8.h>
00013 #include <dxerr8.h>
00014 #include "OgreMemoryMacros.h"
00015 
00016 namespace Ogre {
00017 
00018     static int driverCount = 0;
00019 
00020     class D3D8VideoModeList;
00021     class D3D8VideoMode;
00022 
00023     class /*_OgreD3D8Export*/ D3D8Driver
00024     {
00025     private:
00026         LPDIRECT3D8 mpD3D;
00027         unsigned int mAdapterNumber;
00028         D3DADAPTER_IDENTIFIER8 mAdapterIdentifier;
00029         D3DDISPLAYMODE mDesktopDisplayMode;
00030 
00031         D3D8VideoModeList* mpVideoModeList;
00032 
00033         int tempNo;
00034     public:
00035 
00036         // Constructors
00037         D3D8Driver();                       // Default
00038         D3D8Driver( const D3D8Driver &ob ); // Copy
00039         D3D8Driver( LPDIRECT3D8 pD3D, unsigned int adapterNumber, D3DADAPTER_IDENTIFIER8 adapterIdentifer, D3DDISPLAYMODE desktopDisplayMode );
00040         ~D3D8Driver();
00041 
00042         // Information accessors
00043         String DriverName();
00044         String DriverDescription();
00045 
00046         LPDIRECT3D8 getD3D() { return mpD3D; }
00047         unsigned int getAdapterNumber() const { return mAdapterNumber; }
00048         D3DADAPTER_IDENTIFIER8 getAdapterIdentifier() const { return mAdapterIdentifier; }
00049         D3DDISPLAYMODE getDesktopMode() const { return mDesktopDisplayMode; }
00050 
00051 
00052         D3D8VideoModeList* getVideoModeList();
00053     };
00054 
00055 }
00056 
00057 #endif

Copyright © 2002 by The OGRE Team