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
Last revisionBoth sides next revision
functions:widescreen [2016/10/16 13:22] korshunfunctions:widescreen [2017/01/02 23:35] – [GetAspectRatio] korshun
Line 1: Line 1:
 ====== Widescreen support functions ====== ====== Widescreen support functions ======
  
-==== GetAspectRatio ====+===== GetAspectRatio =====
 ''int GetAspectRatio()'' ''int GetAspectRatio()''
  
Line 12: Line 12:
   * ''ASPECT_5_4''   * ''ASPECT_5_4''
  
 +Every aspect ratio constant is a fixed-point number equal to the corresponding ratio, for example, ''ASPECT_4_3'' is equal to ''1.333333333333333''.
 ===== Hud boundaries ===== ===== Hud boundaries =====
 ''fixed HudLeftFor  (fixed width)'' ''fixed HudLeftFor  (fixed width)''
Line 24: Line 25:
  
 ===== Hud borders ===== ===== Hud borders =====
-''fixed HudBorderXFor (fixed width)''+''fixed HudBorderXFor(fixed width)''
  
-''fixed HudBorderYFor (fixed width)''+''fixed HudBorderYFor(fixed width)''
  
 Return hud borders for the given virtual width or height. Return hud borders for the given virtual width or height.
  
 +===== See also =====
 +
 +Variants of the same functions operating on currently set size, instead of receiving it every time, are available in [[.hudlib|hudlib]] and have the same name, except without the ''For'' prefix.