servicepoint/crates/servicepoint_binding_cs/ServicePoint/Constants.cs

23 lines
662 B
C#
Raw Normal View History

namespace ServicePoint;
2024-05-13 00:17:40 +02:00
public static class Constants
{
/// size of a single tile in one dimension
2024-10-16 21:59:35 +02:00
public const nuint TileSize = ConstantsNative.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// tile count in the x-direction
2024-10-16 21:59:35 +02:00
public const nuint TileWidth = ConstantsNative.SP_TILE_WIDTH;
2024-05-13 00:17:40 +02:00
/// tile count in the y-direction
2024-10-16 21:59:35 +02:00
public const nuint TileHeight = ConstantsNative.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// screen width in pixels
2024-10-16 20:02:06 +02:00
public const nuint PixelWidth = TileWidth * TileSize;
2024-05-13 00:17:40 +02:00
/// screen height in pixels
2024-10-16 20:02:06 +02:00
public const nuint PixelHeight = TileHeight * TileSize;
2024-05-13 00:17:40 +02:00
/// pixel count on whole screen
2024-10-16 20:02:06 +02:00
public const nuint PixelCount = PixelWidth * PixelHeight;
2024-05-13 00:17:40 +02:00
}