mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 10:20:12 +01:00
27 lines
888 B
C#
27 lines
888 B
C#
namespace ServicePoint;
|
|
|
|
public static class Constants
|
|
{
|
|
/// size of a single tile in one dimension
|
|
public const nuint TileSize = ConstantsNative.SP_TILE_SIZE;
|
|
|
|
/// tile count in the x-direction
|
|
public const nuint TileWidth = ConstantsNative.SP_TILE_WIDTH;
|
|
|
|
/// tile count in the y-direction
|
|
public const nuint TileHeight = ConstantsNative.SP_TILE_SIZE;
|
|
|
|
/// screen width in pixels
|
|
public const nuint PixelWidth = TileWidth * TileSize;
|
|
|
|
/// screen height in pixels
|
|
public const nuint PixelHeight = TileHeight * TileSize;
|
|
|
|
/// pixel count on whole screen
|
|
public const nuint PixelCount = PixelWidth * PixelHeight;
|
|
|
|
public const byte MinBrightness = ConstantsNative.SP_BRIGHTNESS_MIN;
|
|
public const byte MaxBrightness = ConstantsNative.SP_BRIGHTNESS_MAX;
|
|
public const byte BrightnessLevels = ConstantsNative.SP_BRIGHTNESS_LEVELS;
|
|
}
|