C# Class OpenRA.Graphics.TerrainSpriteLayer

Inheritance: IDisposable
Show file Open project: OpenRA/OpenRA Class Usage Examples

Public Properties

Property Type Description
BlendMode BlendMode
Sheet Sheet

Public Methods

Method Description
Dispose ( ) : void
Draw ( Viewport viewport ) : void
TerrainSpriteLayer ( World world, WorldRenderer wr, Sheet sheet, BlendMode blendMode, OpenRA.Graphics.PaletteReference palette, bool restrictToBounds ) : System
Update ( CPos cell, Sprite sprite ) : void
Update ( MPos uv, Sprite sprite, float3 pos ) : void

Private Methods

Method Description
UpdatePaletteIndices ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( Viewport viewport ) : void
viewport Viewport
return void

TerrainSpriteLayer() public method

public TerrainSpriteLayer ( World world, WorldRenderer wr, Sheet sheet, BlendMode blendMode, OpenRA.Graphics.PaletteReference palette, bool restrictToBounds ) : System
world World
wr WorldRenderer
sheet Sheet
blendMode BlendMode
palette OpenRA.Graphics.PaletteReference
restrictToBounds bool
return System

Update() public method

public Update ( CPos cell, Sprite sprite ) : void
cell CPos
sprite Sprite
return void

Update() public method

public Update ( MPos uv, Sprite sprite, float3 pos ) : void
uv MPos
sprite Sprite
pos float3
return void

Property Details

BlendMode public property

public BlendMode BlendMode
return BlendMode

Sheet public property

public Sheet,OpenRA.Graphics Sheet
return Sheet