C# 클래스 Myre.Extensions.GraphicsDeviceExtensions

A static class containing extension methods for the Microsoft.Xna.Framework.Graphics.GraphicsDevice class.
파일 보기 프로젝트 열기: TomGillen/Myre

공개 메소드들

메소드 설명
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