C# Class MeshRenderer.Core.ColorManager

Afficher le fichier Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Gets a color scheme with black background.
public static Default ( ) : ColorManager
Résultat ColorManager

GetRegionBrush() public méthode

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

LightScheme() public static méthode

Gets a color scheme with white background.
public static LightScheme ( ) : ColorManager
Résultat ColorManager

MakeRegionMap() public méthode

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.
Résultat void