C# Класс Myre.Extensions.GraphicsDeviceExtensions

A static class containing extension methods for the Microsoft.Xna.Framework.Graphics.GraphicsDevice class.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CalculateHalfPixel() публичный статический Метод

Calculates half the size of a pixel.
public static CalculateHalfPixel ( this device ) : Vector2
device this
Результат Vector2

ClearDepth() публичный статический Метод

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.
Результат void

GetResolution() публичный статический Метод

Gets the resolution of the currently set render target or back buffer.
public static GetResolution ( this device ) : Vector2
device this
Результат Vector2