ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


This is an old revision of the document!

HUD coordinate system

ZDoom uses a special coordinate system for HudMessages. In 4:3 resolutions, the coordinate system's rectangle matches that of the screen. In aspect ratios other than that, a 4:3 rectangle is put at the center of the screen and the remaining screen space is out of its boundaries.

ACSUtils provides functions to correctly work with the HUD coordinate system.

Retrieve aspect ratio

GetAspectRatio returns the aspect ratio that ZDoom assumes the screen is. ZDoom uses tricky code for that.

hud_coordinate_system.1492522301.txt.gz · Last modified: 2017/04/18 16:31 by korshun