mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
25 lines
685 B
C#
25 lines
685 B
C#
using ServicePoint.BindGen;
|
|
|
|
namespace ServicePoint;
|
|
|
|
public static class Constants
|
|
{
|
|
/// size of a single tile in one dimension
|
|
public const nuint TileSize = NativeMethods.SP_TILE_SIZE;
|
|
|
|
/// tile count in the x-direction
|
|
public const nuint TileWidth = NativeMethods.SP_TILE_WIDTH;
|
|
|
|
/// tile count in the y-direction
|
|
public const nuint TileHeight = NativeMethods.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;
|
|
}
|