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

Ogre::DDDriver Class Reference

Encapsulates a DirectDraw driver. More...

#include <OgreDDDriver.h>

List of all members.

Public Methods

 DDDriver ()
 DDDriver (const DDDriver &ob)
 DDDriver (GUID FAR *lpGuid, LPSTR lpDriverDescription, LPSTR lpDriverName)
 ~DDDriver ()
void createWindowSurfaces (HWND hWnd, int width, int height, int colourDepth, bool fullScreen, LPDIRECTDRAWSURFACE7 *front, LPDIRECTDRAWSURFACE7 *back)
 Creates DirectDraw surfaces appropriate for a render window. More...

void Cleanup (void)
void CheckWindow (void)
DDDriver operator= (const DDDriver &orig)
String DriverName (void)
String DriverDescription (void)
LPDIRECTDRAW7 directDraw ()
D3DDeviceListget3DDeviceList (void)
DDVideoModeListgetVideoModeList (void)
DDVideoModegetActiveVideoMode (void)
D3DDeviceget3DDevice (void)
void OutputText (int x, int y, char *text)
void FlipBuffers (void)
bool RunningFullScreen (void)
RECT ViewportRect (void)
bool Has3DAcceleration (void)
bool CanRenderWindowed (void)
void GetDisplayDetails (int &width, int &height, int &colourDepth)

Private Methods

void logCaps (void)
void RestoreSurfaces (void)

Private Attributes

String mDriverName
String mDriverDesc
GUID mGuid
bool mPrimaryDisplay
LPDIRECTDRAW7 lpDD7
LPDIRECT3D7 lpD3D
D3DDeviceListmDeviceList
DDVideoModeListmVideoModeList
D3DDeviceactive3DDevice
DDVideoModeactiveVideoMode
HWND activeHWnd
DDCAPS mSWCaps
DDCAPS mHWCaps
LPDIRECTDRAWSURFACE7 lpDDSPrimary
LPDIRECTDRAWSURFACE7 lpDDSBack
bool runningFullScreen
bool using3DMode
RECT rcViewport
LPDIRECTDRAWCLIPPER lpDDClipper


Detailed Description

Encapsulates a DirectDraw driver.

Utility class for D3DRenderSystem.


Constructor & Destructor Documentation

Ogre::DDDriver::DDDriver  
 

Ogre::DDDriver::DDDriver const DDDriver &    ob
 

Ogre::DDDriver::DDDriver GUID FAR *    lpGuid,
LPSTR    lpDriverDescription,
LPSTR    lpDriverName
 

Ogre::DDDriver::~DDDriver  
 


Member Function Documentation

bool Ogre::DDDriver::CanRenderWindowed void   
 

void Ogre::DDDriver::CheckWindow void   
 

void Ogre::DDDriver::Cleanup void   
 

void Ogre::DDDriver::createWindowSurfaces HWND    hWnd,
int    width,
int    height,
int    colourDepth,
bool    fullScreen,
LPDIRECTDRAWSURFACE7 *    front,
LPDIRECTDRAWSURFACE7 *    back
 

Creates DirectDraw surfaces appropriate for a render window.

Remarks:
This method creates double-buffered surfaces for a window. Note that in this case the metrics supplied (width, height) must be of the CLIENT area of a window only if fullScreen = false; i.e. the metrics must be ignoring title bar, menu bar etc.
Parameters:
hWnd  Window handle to the window for which the surfaces are created.
width  The width of the surfaces required (see note above).
height  The height of the surfaces required (see note above).
colourDepth  The colour depth in bits per pixel. Only relevant if fullScreen = true.
fullScreen  Specify true to make these surfaces full screen exclusive.
front  Pointer to a pointer which will be filled with the interface to the front buffer on return.
back  Pointer to a pointer which will be filled with the interface to the back buffer on return. Only relevant if fullScreen = false.

LPDIRECTDRAW7 Ogre::DDDriver::directDraw  
 

String Ogre::DDDriver::DriverDescription void   
 

String Ogre::DDDriver::DriverName void   
 

void Ogre::DDDriver::FlipBuffers void   
 

D3DDevice * Ogre::DDDriver::get3DDevice void   
 

D3DDeviceList * Ogre::DDDriver::get3DDeviceList void   
 

DDVideoMode * Ogre::DDDriver::getActiveVideoMode void   
 

void Ogre::DDDriver::GetDisplayDetails int &    width,
int &    height,
int &    colourDepth
 

DDVideoModeList * Ogre::DDDriver::getVideoModeList void   
 

bool Ogre::DDDriver::Has3DAcceleration void   
 

void Ogre::DDDriver::logCaps void    [private]
 

DDDriver Ogre::DDDriver::operator= const DDDriver &    orig
 

void Ogre::DDDriver::OutputText int    x,
int    y,
char *    text
 

void Ogre::DDDriver::RestoreSurfaces void    [private]
 

bool Ogre::DDDriver::RunningFullScreen void   
 

RECT Ogre::DDDriver::ViewportRect void   
 


Member Data Documentation

D3DDevice* Ogre::DDDriver::active3DDevice [private]
 

HWND Ogre::DDDriver::activeHWnd [private]
 

DDVideoMode* Ogre::DDDriver::activeVideoMode [private]
 

LPDIRECT3D7 Ogre::DDDriver::lpD3D [private]
 

LPDIRECTDRAW7 Ogre::DDDriver::lpDD7 [private]
 

LPDIRECTDRAWCLIPPER Ogre::DDDriver::lpDDClipper [private]
 

LPDIRECTDRAWSURFACE7 Ogre::DDDriver::lpDDSBack [private]
 

LPDIRECTDRAWSURFACE7 Ogre::DDDriver::lpDDSPrimary [private]
 

D3DDeviceList* Ogre::DDDriver::mDeviceList [private]
 

String Ogre::DDDriver::mDriverDesc [private]
 

String Ogre::DDDriver::mDriverName [private]
 

GUID Ogre::DDDriver::mGuid [private]
 

DDCAPS Ogre::DDDriver::mHWCaps [private]
 

bool Ogre::DDDriver::mPrimaryDisplay [private]
 

DDCAPS Ogre::DDDriver::mSWCaps [private]
 

DDVideoModeList* Ogre::DDDriver::mVideoModeList [private]
 

RECT Ogre::DDDriver::rcViewport [private]
 

bool Ogre::DDDriver::runningFullScreen [private]
 

bool Ogre::DDDriver::using3DMode [private]
 

Copyright © 2002 by The OGRE Team