C# Class OpenRA.Graphics.SpriteRenderable

Mostra file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
None IEnumerable

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
SpriteRenderable ( Sprite sprite, WPos pos, WVec offset, int zOffset, OpenRA.Graphics.PaletteReference palette, float scale, bool isDecoration ) : System.Collections.Generic
WithPalette ( OpenRA.Graphics.PaletteReference newPalette ) : IRenderable
WithZOffset ( int newOffset ) : IRenderable

Private Methods

Method Description
ScreenPosition ( WorldRenderer wr ) : float3

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

SpriteRenderable() public method

public SpriteRenderable ( Sprite sprite, WPos pos, WVec offset, int zOffset, OpenRA.Graphics.PaletteReference palette, float scale, bool isDecoration ) : System.Collections.Generic
sprite Sprite
pos WPos
offset WVec
zOffset int
palette OpenRA.Graphics.PaletteReference
scale float
isDecoration bool
return System.Collections.Generic

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

Property Details

None public_oe static_oe property

public static IEnumerable None
return IEnumerable