C# Class OpenRA.Graphics.SpriteRenderer

Exibir arquivo Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
DrawSprite ( Sprite s, Vertex sourceVertices, int offset ) : void
DrawSprite ( Sprite s, float3 location ) : void
DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal ) : void
DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal, float3 size ) : void
DrawSprite ( Sprite s, float3 location, float3 size ) : void
DrawSprite ( Sprite s, float3 a, float3 b, float3 c, float3 d ) : void
DrawVertexBuffer ( IVertexBuffer buffer, int start, int length, PrimitiveType type, Sheet sheet, BlendMode blendMode ) : void
Flush ( ) : void
SetDepthPreviewEnabled ( bool enabled ) : void
SetPalette ( ITexture palette ) : void
SetViewportParams ( Size screen, float depthScale, float depthOffset, float zoom, int2 scroll ) : void
SpriteRenderer ( Renderer renderer, IShader shader ) : System

Private Methods

Method Description
DrawSprite ( Sprite s, float3 location, float paletteTextureIndex, float3 size ) : void
SetRenderStateForSprite ( Sprite s ) : void

Method Details

DrawSprite() public method

public DrawSprite ( Sprite s, Vertex sourceVertices, int offset ) : void
s Sprite
sourceVertices Vertex
offset int
return void

DrawSprite() public method

public DrawSprite ( Sprite s, float3 location ) : void
s Sprite
location float3
return void

DrawSprite() public method

public DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal ) : void
s Sprite
location float3
pal OpenRA.Graphics.PaletteReference
return void

DrawSprite() public method

public DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal, float3 size ) : void
s Sprite
location float3
pal OpenRA.Graphics.PaletteReference
size float3
return void

DrawSprite() public method

public DrawSprite ( Sprite s, float3 location, float3 size ) : void
s Sprite
location float3
size float3
return void

DrawSprite() public method

public DrawSprite ( Sprite s, float3 a, float3 b, float3 c, float3 d ) : void
s Sprite
a float3
b float3
c float3
d float3
return void

DrawVertexBuffer() public method

public DrawVertexBuffer ( IVertexBuffer buffer, int start, int length, PrimitiveType type, Sheet sheet, BlendMode blendMode ) : void
buffer IVertexBuffer
start int
length int
type PrimitiveType
sheet Sheet
blendMode BlendMode
return void

Flush() public method

public Flush ( ) : void
return void

SetDepthPreviewEnabled() public method

public SetDepthPreviewEnabled ( bool enabled ) : void
enabled bool
return void

SetPalette() public method

public SetPalette ( ITexture palette ) : void
palette ITexture
return void

SetViewportParams() public method

public SetViewportParams ( Size screen, float depthScale, float depthOffset, float zoom, int2 scroll ) : void
screen Size
depthScale float
depthOffset float
zoom float
scroll int2
return void

SpriteRenderer() public method

public SpriteRenderer ( Renderer renderer, IShader shader ) : System
renderer Renderer
shader IShader
return System