C# Class Myre.Extensions.GraphicsDeviceExtensions

A static class containing extension methods for the Microsoft.Xna.Framework.Graphics.GraphicsDevice class.
Afficher le fichier Open project: TomGillen/Myre

Méthodes publiques

Méthode 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 méthode

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

ClearDepth() public static méthode

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.
Résultat void

GetResolution() public static méthode

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