C# Class Myre.Extensions.GraphicsDeviceExtensions

A static class containing extension methods for the Microsoft.Xna.Framework.Graphics.GraphicsDevice class.
显示文件 Open project: TomGillen/Myre

Public Methods

Method Description
CalculateHalfPixel ( this device ) : Vector2

Calculates half the size of a pixel.

ClearDepth ( this device, int depth ) : void

Clears the depth buffer.

GetResolution ( this device ) : Vector2

Gets the resolution of the currently set render target or back buffer.

Method Details

CalculateHalfPixel() public static method

Calculates half the size of a pixel.
public static CalculateHalfPixel ( this device ) : Vector2
device this
return Vector2

ClearDepth() public static method

Clears the depth buffer.
public static ClearDepth ( this device, int depth ) : void
device this The graphics device to clear.
depth int The depth to clear the depth buffer to.
return void

GetResolution() public static method

Gets the resolution of the currently set render target or back buffer.
public static GetResolution ( this device ) : Vector2
device this
return Vector2