ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:widescreen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:widescreen [2016/10/16 13:22] korshunfunctions:widescreen [2017/06/12 18:43] (current) – removed korshun
Line 1: Line 1:
-====== Widescreen support functions ====== 
- 
-==== GetAspectRatio ==== 
-''int GetAspectRatio()'' 
- 
-Returns the aspect ratio that ZDoom is currently using for [[zdoom>HudMessage|HudMessages]]. 
- 
-  * ''ASPECT_4_3'' 
-  * ''ASPECT_16_9'' 
-  * ''ASPECT_16_10'' 
-  * ''ASPECT_17_10'' 
-  * ''ASPECT_5_4'' 
- 
-===== Hud boundaries ===== 
-''fixed HudLeftFor  (fixed width)'' 
-''fixed HudRightFor (fixed width)'' 
-''fixed HudTopFor   (fixed height)'' 
-''fixed HudBottomFor(fixed height)'' 
- 
-Return the boundaries of the screen for the given virtual width or height, accounting for current aspect ratio. Equivalent to adding or subtracting a hud border manually. 
- 
-===== Hud borders ===== 
-''fixed HudBorderXFor (fixed width)'' 
-''fixed HudBorderYFor (fixed width)'' 
- 
-Return hud borders for the given virtual width or height. 
- 
- 
- 
- 
  
functions/widescreen.1476613327.txt.gz · Last modified: 2016/10/16 13:22 by korshun