C# Class FFXIVAPP.Hooker.Engine.DXSpriteRenderer

Inheritance: IDisposable
ファイルを表示 Open project: Icehunter/ffxivapp-hooker Class Usage Examples

Public Methods

Method Description
BeginBatch ( SharpDX.Direct3D11.ShaderResourceView texSRV ) : void
DXSpriteRenderer ( SharpDX.Direct3D11.Device device, DeviceContext deviceContext ) : System
Dispose ( ) : void
Draw ( Rectangle destinationRect, Rectangle sourceRect, Color4 color ) : void
DrawString ( int X, int Y, string text, int R, int G, int B, int A, DXFont F ) : void
EndBatch ( ) : void
Initialize ( ) : bool

Private Methods

Method Description
BuildSpriteQuad ( Sprite sprite, SpriteVertex &v ) : void
DrawBatch ( int startSpriteIndex, int spriteCount ) : void
PointToNdc ( int x, int y, float z ) : System.Vector3
SafeDispose ( IDisposable obj ) : void

Method Details

BeginBatch() public method

public BeginBatch ( SharpDX.Direct3D11.ShaderResourceView texSRV ) : void
texSRV SharpDX.Direct3D11.ShaderResourceView
return void

DXSpriteRenderer() public method

public DXSpriteRenderer ( SharpDX.Direct3D11.Device device, DeviceContext deviceContext ) : System
device SharpDX.Direct3D11.Device
deviceContext DeviceContext
return System

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( Rectangle destinationRect, Rectangle sourceRect, Color4 color ) : void
destinationRect Rectangle
sourceRect Rectangle
color Color4
return void

DrawString() public method

public DrawString ( int X, int Y, string text, int R, int G, int B, int A, DXFont F ) : void
X int
Y int
text string
R int
G int
B int
A int
F DXFont
return void

EndBatch() public method

public EndBatch ( ) : void
return void

Initialize() public method

public Initialize ( ) : bool
return bool