C# Класс OpenRA.Graphics.SpriteRenderer

Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
DrawSprite ( Sprite s, float3 location, float paletteTextureIndex, float3 size ) : void
SetRenderStateForSprite ( Sprite s ) : void

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

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, Vertex sourceVertices, int offset ) : void
s Sprite
sourceVertices Vertex
offset int
Результат void

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, float3 location ) : void
s Sprite
location float3
Результат void

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal ) : void
s Sprite
location float3
pal OpenRA.Graphics.PaletteReference
Результат void

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, float3 location, OpenRA.Graphics.PaletteReference pal, float3 size ) : void
s Sprite
location float3
pal OpenRA.Graphics.PaletteReference
size float3
Результат void

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, float3 location, float3 size ) : void
s Sprite
location float3
size float3
Результат void

DrawSprite() публичный Метод

public DrawSprite ( Sprite s, float3 a, float3 b, float3 c, float3 d ) : void
s Sprite
a float3
b float3
c float3
d float3
Результат void

DrawVertexBuffer() публичный Метод

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

Flush() публичный Метод

public Flush ( ) : void
Результат void

SetDepthPreviewEnabled() публичный Метод

public SetDepthPreviewEnabled ( bool enabled ) : void
enabled bool
Результат void

SetPalette() публичный Метод

public SetPalette ( ITexture palette ) : void
palette ITexture
Результат void

SetViewportParams() публичный Метод

public SetViewportParams ( Size screen, float depthScale, float depthOffset, float zoom, int2 scroll ) : void
screen Size
depthScale float
depthOffset float
zoom float
scroll int2
Результат void

SpriteRenderer() публичный Метод

public SpriteRenderer ( Renderer renderer, IShader shader ) : System
renderer Renderer
shader IShader
Результат System