![]() |
rag
graphic 2d engine
|
Contains information about the current device. More...
#include <Screen.h>
Static Public Attributes | |
static int | width = 0 |
Virtual width of the screen. Shared across all devices. | |
static int | height = 0 |
Virtual height of the screen. Shared across all devices. | |
static glm::vec2 | center |
Virtual center of the screen. Shared across all devices. | |
static int | realWidth = 0 |
Actual number of pixels of width in the screen. | |
static int | realHeight = 0 |
Actual number of pixels of height in the screen. | |
static float | scale = 0 |
Apple scale. | |
static float | scaleBest = 0 |
Maximum scale where no deformation occurs. | |
static float | factorX = 0 |
Factor used to maintain screen width coordinates independent from resolution or aspect ratio. | |
static float | factorY = 0 |
Factor used to maintain screen height coordinates independent from resolution or aspect ratio. | |
static bool | isTablet = false |
True if the device is considered a table instead of a phone. | |
static bool | isLowPerformer = false |
True for low end devices. | |
static bool | isLowRes = false |
True for devices with low resolution screens. | |
Contains information about the current device.