GetScreenSize /Application and system

vector2 GetScreenSize()

Returns the current back-buffer size where x describes its width and y its height (both in pixels).

Sample:

const vector2 screenMiddle = GetScreenSize() * 0.5f;