C# Class OpenRA.Graphics.HardwarePalette

Show file Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
AddPalette ( string name, ImmutablePalette p, bool allowModifiers ) : void
ApplyModifiers ( IEnumerable paletteMods ) : void
Contains ( string name ) : bool
Dispose ( ) : void
GetPalette ( string name ) : IPalette
GetPaletteIndex ( string name ) : int
HardwarePalette ( ) : System
Initialize ( ) : void
ReplacePalette ( string name, IPalette p ) : void

Private Methods

Method Description
CopyBufferToTexture ( ) : void
CopyModifiablePalettesToBuffer ( ) : void
CopyPaletteToBuffer ( int index, IPalette p ) : void

Method Details

AddPalette() public method

public AddPalette ( string name, ImmutablePalette p, bool allowModifiers ) : void
name string
p ImmutablePalette
allowModifiers bool
return void

ApplyModifiers() public method

public ApplyModifiers ( IEnumerable paletteMods ) : void
paletteMods IEnumerable
return void

Contains() public method

public Contains ( string name ) : bool
name string
return bool

Dispose() public method

public Dispose ( ) : void
return void

GetPalette() public method

public GetPalette ( string name ) : IPalette
name string
return IPalette

GetPaletteIndex() public method

public GetPaletteIndex ( string name ) : int
name string
return int

HardwarePalette() public method

public HardwarePalette ( ) : System
return System

Initialize() public method

public Initialize ( ) : void
return void

ReplacePalette() public method

public ReplacePalette ( string name, IPalette p ) : void
name string
p IPalette
return void