OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::D3D9RenderWindow Class Reference

#include <OgreD3D9RenderWindow.h>

+ Inheritance diagram for Ogre::D3D9RenderWindow:

Public Member Functions

 D3D9RenderWindow (HINSTANCE instance)
 Constructor. More...
 
 ~D3D9RenderWindow ()
 
virtual void _beginUpdate ()
 
virtual void _endUpdate ()
 
void _finishSwitchingFullscreen ()
 Indicate that fullscreen / windowed switching has finished. More...
 
bool _getSwitchingFullscreen () const
 Are we in the middle of switching between fullscreen and windowed. More...
 
virtual void _updateViewportRenderPhase02 (Viewport *viewport, Camera *camera, const Camera *lodCamera, uint8 firstRq, uint8 lastRq, bool updateStatistics)
 
bool _validateDevice ()
 Validate the device for this window. More...
 
void _validateStereo ()
 Validate the type of stereo that is enabled for this window. More...
 
void adjustWindow (unsigned int clientWidth, unsigned int clientHeight, unsigned int *winWidth, unsigned int *winHeight)
 
void buildPresentParameters (D3DPRESENT_PARAMETERS *presentParams)
 Build the presentation parameters used with this window. More...
 
void copyContentsToMemory (const Box &src, const PixelBox &dst, FrameBuffer buffer)
 Overridden - see RenderTarget. More...
 
void create (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams)
 
void destroy (void)
 
void getCustomAttribute (const String &name, void *pData)
 
IDirect3DDevice9 * getD3D9Device ()
 
D3D9DevicegetDevice ()
 
IDirect3DSurface9 * getRenderSurface ()
 Accessor for render surface. More...
 
unsigned int getVSyncInterval () const
 
HWND getWindowHandle () const
 
bool isAA () const
 
bool isActive () const
 
bool isClosed () const
 
bool isDepthBuffered () const
 Returns true if this window use depth buffer. More...
 
bool isHidden () const
 
bool isNvPerfHUDEnable () const
 Returns true if this window should use NV Perf HUD adapter. More...
 
bool isVisible () const
 
bool isVSync () const
 
bool isVSyncEnabled () const
 
void reposition (int left, int top)
 
bool requiresTextureFlipping () const
 
void resize (unsigned int width, unsigned int height)
 
void setDevice (D3D9Device *device)
 
void setFullscreen (bool fullScreen, unsigned int width, unsigned int height)
 
void setHidden (bool hidden)
 
void setVSyncEnabled (bool vsync)
 
void setVSyncInterval (unsigned int interval)
 
void swapBuffers ()
 
void windowMovedOrResized ()
 

Constructor & Destructor Documentation

◆ D3D9RenderWindow()

Ogre::D3D9RenderWindow::D3D9RenderWindow ( HINSTANCE  instance)

Constructor.

Parameters
instanceThe application instance

◆ ~D3D9RenderWindow()

Ogre::D3D9RenderWindow::~D3D9RenderWindow ( )

Member Function Documentation

◆ _beginUpdate()

virtual void Ogre::D3D9RenderWindow::_beginUpdate ( )
virtual

◆ _endUpdate()

virtual void Ogre::D3D9RenderWindow::_endUpdate ( )
virtual

◆ _finishSwitchingFullscreen()

void Ogre::D3D9RenderWindow::_finishSwitchingFullscreen ( )

Indicate that fullscreen / windowed switching has finished.

◆ _getSwitchingFullscreen()

bool Ogre::D3D9RenderWindow::_getSwitchingFullscreen ( ) const

Are we in the middle of switching between fullscreen and windowed.

◆ _updateViewportRenderPhase02()

virtual void Ogre::D3D9RenderWindow::_updateViewportRenderPhase02 ( Viewport viewport,
Camera camera,
const Camera lodCamera,
uint8  firstRq,
uint8  lastRq,
bool  updateStatistics 
)
virtual

◆ _validateDevice()

bool Ogre::D3D9RenderWindow::_validateDevice ( )

Validate the device for this window.

◆ _validateStereo()

void Ogre::D3D9RenderWindow::_validateStereo ( )

Validate the type of stereo that is enabled for this window.

◆ adjustWindow()

void Ogre::D3D9RenderWindow::adjustWindow ( unsigned int  clientWidth,
unsigned int  clientHeight,
unsigned int *  winWidth,
unsigned int *  winHeight 
)

◆ buildPresentParameters()

void Ogre::D3D9RenderWindow::buildPresentParameters ( D3DPRESENT_PARAMETERS *  presentParams)

Build the presentation parameters used with this window.

◆ copyContentsToMemory()

void Ogre::D3D9RenderWindow::copyContentsToMemory ( const Box src,
const PixelBox &  dst,
FrameBuffer  buffer 
)

Overridden - see RenderTarget.

◆ create()

void Ogre::D3D9RenderWindow::create ( const String name,
unsigned int  width,
unsigned int  height,
bool  fullScreen,
const NameValuePairList miscParams 
)

◆ destroy()

void Ogre::D3D9RenderWindow::destroy ( void  )

◆ getCustomAttribute()

void Ogre::D3D9RenderWindow::getCustomAttribute ( const String name,
void *  pData 
)

◆ getD3D9Device()

IDirect3DDevice9* Ogre::D3D9RenderWindow::getD3D9Device ( )

◆ getDevice()

D3D9Device* Ogre::D3D9RenderWindow::getDevice ( )

◆ getRenderSurface()

IDirect3DSurface9* Ogre::D3D9RenderWindow::getRenderSurface ( )

Accessor for render surface.

◆ getVSyncInterval()

unsigned int Ogre::D3D9RenderWindow::getVSyncInterval ( ) const

◆ getWindowHandle()

HWND Ogre::D3D9RenderWindow::getWindowHandle ( ) const
inline

◆ isAA()

bool Ogre::D3D9RenderWindow::isAA ( ) const
inline

◆ isActive()

bool Ogre::D3D9RenderWindow::isActive ( ) const

◆ isClosed()

bool Ogre::D3D9RenderWindow::isClosed ( ) const
inline

◆ isDepthBuffered()

bool Ogre::D3D9RenderWindow::isDepthBuffered ( ) const

Returns true if this window use depth buffer.

◆ isHidden()

bool Ogre::D3D9RenderWindow::isHidden ( ) const
inline

◆ isNvPerfHUDEnable()

bool Ogre::D3D9RenderWindow::isNvPerfHUDEnable ( ) const

Returns true if this window should use NV Perf HUD adapter.

◆ isVisible()

bool Ogre::D3D9RenderWindow::isVisible ( ) const

◆ isVSync()

bool Ogre::D3D9RenderWindow::isVSync ( ) const
inline

◆ isVSyncEnabled()

bool Ogre::D3D9RenderWindow::isVSyncEnabled ( ) const

◆ reposition()

void Ogre::D3D9RenderWindow::reposition ( int  left,
int  top 
)

◆ requiresTextureFlipping()

bool Ogre::D3D9RenderWindow::requiresTextureFlipping ( ) const
inline

◆ resize()

void Ogre::D3D9RenderWindow::resize ( unsigned int  width,
unsigned int  height 
)

◆ setDevice()

void Ogre::D3D9RenderWindow::setDevice ( D3D9Device device)

◆ setFullscreen()

void Ogre::D3D9RenderWindow::setFullscreen ( bool  fullScreen,
unsigned int  width,
unsigned int  height 
)

◆ setHidden()

void Ogre::D3D9RenderWindow::setHidden ( bool  hidden)

◆ setVSyncEnabled()

void Ogre::D3D9RenderWindow::setVSyncEnabled ( bool  vsync)

◆ setVSyncInterval()

void Ogre::D3D9RenderWindow::setVSyncInterval ( unsigned int  interval)

◆ swapBuffers()

void Ogre::D3D9RenderWindow::swapBuffers ( )

◆ windowMovedOrResized()

void Ogre::D3D9RenderWindow::windowMovedOrResized ( )

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