C# Class OpenRA.Graphics.SpriteRenderer

Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

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

Méthode Description
DrawSprite ( Sprite s, float3 location, float paletteTextureIndex, float3 size ) : void
SetRenderStateForSprite ( Sprite s ) : void

Method Details

DrawSprite() public méthode

public DrawSprite ( Sprite s, Vertex sourceVertices, int offset ) : void
s Sprite
sourceVertices Vertex
offset int
Résultat void

DrawSprite() public méthode

public DrawSprite ( Sprite s, float3 location ) : void
s Sprite
location float3
Résultat void

DrawSprite() public méthode

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

DrawSprite() public méthode

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

DrawSprite() public méthode

public DrawSprite ( Sprite s, float3 location, float3 size ) : void
s Sprite
location float3
size float3
Résultat void

DrawSprite() public méthode

public DrawSprite ( Sprite s, float3 a, float3 b, float3 c, float3 d ) : void
s Sprite
a float3
b float3
c float3
d float3
Résultat void

DrawVertexBuffer() public méthode

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

Flush() public méthode

public Flush ( ) : void
Résultat void

SetDepthPreviewEnabled() public méthode

public SetDepthPreviewEnabled ( bool enabled ) : void
enabled bool
Résultat void

SetPalette() public méthode

public SetPalette ( ITexture palette ) : void
palette ITexture
Résultat void

SetViewportParams() public méthode

public SetViewportParams ( Size screen, float depthScale, float depthOffset, float zoom, int2 scroll ) : void
screen Size
depthScale float
depthOffset float
zoom float
scroll int2
Résultat void

SpriteRenderer() public méthode

public SpriteRenderer ( Renderer renderer, IShader shader ) : System
renderer Renderer
shader IShader
Résultat System