servicepoint/crates/servicepoint_binding_cs/ServicePoint/Constants.cs

25 lines
673 B
C#
Raw Normal View History

2024-10-15 22:54:32 +02:00
using ServicePoint.BindGen;
namespace ServicePoint;
2024-05-13 00:17:40 +02:00
public static class Constants
{
/// size of a single tile in one dimension
2024-10-15 22:54:32 +02:00
public const int TileSize = NativeMethods.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// tile count in the x-direction
2024-10-15 22:54:32 +02:00
public const int TileWidth = NativeMethods.SP_TILE_WIDTH;
2024-05-13 00:17:40 +02:00
/// tile count in the y-direction
2024-10-15 22:54:32 +02:00
public const int TileHeight = NativeMethods.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// screen width in pixels
public const int PixelWidth = TileWidth * TileSize;
/// screen height in pixels
public const int PixelHeight = TileHeight * TileSize;
/// pixel count on whole screen
public const int PixelCount = PixelWidth * PixelHeight;
}