C# Class OpenRA.Graphics.UISpriteRenderable

Datei anzeigen Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
AsDecoration ( ) : IRenderable
OffsetBy ( WVec vec ) : IRenderable
PrepareRender ( WorldRenderer wr ) : IFinalizedRenderable
Render ( WorldRenderer wr ) : void
RenderDebugGeometry ( WorldRenderer wr ) : void
ScreenBounds ( WorldRenderer wr ) : Rectangle
UISpriteRenderable ( Sprite sprite, WPos effectiveWorldPos, int2 screenPos, int zOffset, OpenRA.Graphics.PaletteReference palette, float scale ) : System.Drawing
WithPalette ( OpenRA.Graphics.PaletteReference newPalette ) : IRenderable
WithZOffset ( int newOffset ) : IRenderable

Method Details

AsDecoration() public method

public AsDecoration ( ) : IRenderable
return IRenderable

OffsetBy() public method

public OffsetBy ( WVec vec ) : IRenderable
vec WVec
return IRenderable

PrepareRender() public method

public PrepareRender ( WorldRenderer wr ) : IFinalizedRenderable
wr WorldRenderer
return IFinalizedRenderable

Render() public method

public Render ( WorldRenderer wr ) : void
wr WorldRenderer
return void

RenderDebugGeometry() public method

public RenderDebugGeometry ( WorldRenderer wr ) : void
wr WorldRenderer
return void

ScreenBounds() public method

public ScreenBounds ( WorldRenderer wr ) : Rectangle
wr WorldRenderer
return System.Drawing.Rectangle

UISpriteRenderable() public method

public UISpriteRenderable ( Sprite sprite, WPos effectiveWorldPos, int2 screenPos, int zOffset, OpenRA.Graphics.PaletteReference palette, float scale ) : System.Drawing
sprite Sprite
effectiveWorldPos WPos
screenPos int2
zOffset int
palette OpenRA.Graphics.PaletteReference
scale float
return System.Drawing

WithPalette() public method

public WithPalette ( OpenRA.Graphics.PaletteReference newPalette ) : IRenderable
newPalette OpenRA.Graphics.PaletteReference
return IRenderable

WithZOffset() public method

public WithZOffset ( int newOffset ) : IRenderable
newOffset int
return IRenderable