Artemus::Proxy::VirtualGraphicsDevice Class Reference

A virtual graphics device that uses hardware rendering when available, but fallbacks to software rendering when hardware is not available (i.e. guest OS on virtualized processor). More...

List of all members.

Public Member Functions

bool BeginDraw ()
 Initializes the graphics device for a frame and returns if rendering can continue.
void CreateDevice ()
 Creates a GraphicsDevice instance.
void CreateDeviceInternal ()
 Creates a new XNA GraphicsDevice instnace.
void EndDraw ()
 Ends the current frame.
 VirtualGraphicsDevice (Game game)
 Constructs a new instance of the graphics device.

Public Attributes

event EventHandler DeviceCreated
 Event handler attachment point for device created events.
event EventHandler DeviceDisposing
 Event handler attachment point for device disposing events.
event EventHandler DeviceReset
 Event handler attachment point for device reset events.
event EventHandler DeviceResetting
 Event handler attachment point for device resetting events.

Properties

GraphicsDevice GraphicsDevice [get]
 Gets the GraphicsDevice instance.

Private Member Functions

void m_graphicsDevice_DeviceLost (object sender, EventArgs e)
 Event handler for device lost events.
void m_graphicsDevice_DeviceReset (object sender, EventArgs e)
 Event handler for device reset events.
void m_graphicsDevice_DeviceResetting (object sender, EventArgs e)
 Event handler for device resetting events.
void m_graphicsDevice_Disposing (object sender, EventArgs e)
 Event handler for disposing events.
void m_graphicsDevice_ResourceCreated (object sender, ResourceCreatedEventArgs e)
 Event handler for resource created events.
void m_graphicsDevice_ResourceDestroyed (object sender, ResourceDestroyedEventArgs e)
 Event handler for resource destroyed events.

Private Attributes

Game m_game
GraphicsDevice m_graphicsDevice = null
PresentationParameters m_presentParams


Detailed Description

A virtual graphics device that uses hardware rendering when available, but fallbacks to software rendering when hardware is not available (i.e. guest OS on virtualized processor).


Constructor & Destructor Documentation

Artemus::Proxy::VirtualGraphicsDevice::VirtualGraphicsDevice ( Game  game  )  [inline]

Constructs a new instance of the graphics device.

Parameters:
game The XNA game instance owning this device.


Member Function Documentation

bool Artemus::Proxy::VirtualGraphicsDevice::BeginDraw (  )  [inline]

Initializes the graphics device for a frame and returns if rendering can continue.

Returns:
True if frame rendering can continue, or false if an error occurred.

void Artemus::Proxy::VirtualGraphicsDevice::CreateDevice (  )  [inline]

Creates a GraphicsDevice instance.

void Artemus::Proxy::VirtualGraphicsDevice::CreateDeviceInternal (  )  [inline]

Creates a new XNA GraphicsDevice instnace.

void Artemus::Proxy::VirtualGraphicsDevice::EndDraw (  )  [inline]

Ends the current frame.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_DeviceLost ( object  sender,
EventArgs  e 
) [inline, private]

Event handler for device lost events.

Parameters:
sender The sending object.
e The event arguments.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_DeviceReset ( object  sender,
EventArgs  e 
) [inline, private]

Event handler for device reset events.

Parameters:
sender The sending object.
e The event arguments.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_DeviceResetting ( object  sender,
EventArgs  e 
) [inline, private]

Event handler for device resetting events.

Parameters:
sender The sending object.
e The event arguments.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_Disposing ( object  sender,
EventArgs  e 
) [inline, private]

Event handler for disposing events.

Parameters:
sender The sending object.
e The event arguments.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_ResourceCreated ( object  sender,
ResourceCreatedEventArgs  e 
) [inline, private]

Event handler for resource created events.

Parameters:
sender The sending object.
e The event arguments.

void Artemus::Proxy::VirtualGraphicsDevice::m_graphicsDevice_ResourceDestroyed ( object  sender,
ResourceDestroyedEventArgs  e 
) [inline, private]

Event handler for resource destroyed events.

Parameters:
sender The sending object.
e The event arguments.


Member Data Documentation

Event handler attachment point for device created events.

Event handler attachment point for device disposing events.

Event handler attachment point for device reset events.

Event handler attachment point for device resetting events.


Property Documentation

GraphicsDevice Artemus::Proxy::VirtualGraphicsDevice::GraphicsDevice [get]

Gets the GraphicsDevice instance.


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

Generated on Sat Jul 19 14:22:34 2008 for Artemus Proxy by  doxygen 1.5.5