Public Member Functions

sp::video::Direct3D9RenderContext Class Reference

Direct3D9 render context. More...

#include <spDirect3D9RenderContext.hpp>

Inheritance diagram for sp::video::Direct3D9RenderContext:
sp::video::DesktopRenderContext sp::video::RenderContext

List of all members.

Public Member Functions

 Direct3D9RenderContext ()
 ~Direct3D9RenderContext ()
bool openGraphicsScreen (void *ParentWindow, const dim::size2di &Resolution, const io::stringc &Title, s32 ColorDepth, bool isFullscreen, const SDeviceFlags &Flags)
void closeGraphicsScreen ()
 Closes the graphics screen and releases all hardware specific resources.
void flipBuffers ()
bool activate ()
 Activates the render context by making it to the current.
bool deactivate ()
 Deactivates the render context.

Detailed Description

Direct3D9 render context.


Constructor & Destructor Documentation

sp::video::Direct3D9RenderContext::Direct3D9RenderContext (  ) 
sp::video::Direct3D9RenderContext::~Direct3D9RenderContext (  ) 

Member Function Documentation

bool sp::video::Direct3D9RenderContext::activate (  )  [virtual]

Activates the render context by making it to the current.

Reimplemented from sp::video::DesktopRenderContext.

void sp::video::Direct3D9RenderContext::closeGraphicsScreen (  )  [virtual]

Closes the graphics screen and releases all hardware specific resources.

Reimplemented from sp::video::DesktopRenderContext.

bool sp::video::Direct3D9RenderContext::deactivate (  )  [virtual]

Deactivates the render context.

Reimplemented from sp::video::DesktopRenderContext.

void sp::video::Direct3D9RenderContext::flipBuffers (  )  [virtual]

Flips the buffers to see the final image onto the monitor. If vsync (vertical synchronisation) is enabled the program waits at this point until the graphics card releases the synchronisation.

Reimplemented from sp::video::DesktopRenderContext.

bool sp::video::Direct3D9RenderContext::openGraphicsScreen ( void *  ParentWindow,
const dim::size2di Resolution,
const io::stringc Title,
s32  ColorDepth,
bool  isFullscreen,
const SDeviceFlags Flags 
) [virtual]

Opens the graphics screen. This function will be called automatically once when the graphics device will be created.

Parameters:
[in] ParentWindow Pointer to the window object. For MS/Windows this must be a pointer to a HWND instance or null if no parent window is to be used.
[in] Resolution Specifies the screen resolution for this context.
[in] Title Specifies the window title.
[in] ColorDepth Specifies the color bit depth. Valid values are 16, 24 and 32.
[in] isFullscreen Specifies whether fullscreen is to be enabled or disabled.
[in] Flags Specifies the device flags. This contains information about anti-aliasing and some other options.
Returns:
True if the graphics screen has been successfully created. Otherwise false.

Reimplemented from sp::video::DesktopRenderContext.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines