C# Class MeshRenderer.Core.ColorManager

Exibir arquivo Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Methods

Method Description
Default ( ) : ColorManager

Gets a color scheme with black background.

GetRegionBrush ( int region ) : Brush

Get the color defined for given region.

LightScheme ( ) : ColorManager

Gets a color scheme with white background.

MakeRegionMap ( int partition, int size ) : void

Setup a region map.

Method Details

Default() public static method

Gets a color scheme with black background.
public static Default ( ) : ColorManager
return ColorManager

GetRegionBrush() public method

Get the color defined for given region.
public GetRegionBrush ( int region ) : Brush
region int
return System.Drawing.Brush

LightScheme() public static method

Gets a color scheme with white background.
public static LightScheme ( ) : ColorManager
return ColorManager

MakeRegionMap() public method

Setup a region map.
public MakeRegionMap ( int partition, int size ) : void
partition int Mesh partition (size = number of triangles in mesh)
size int Number of partitions / regions.
return void