This shows you the differences between two versions of the page.
archive:widescreen [2017/06/12 15:43] – created korshun | archive:widescreen [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <note warning> | ||
- | |||
- | ====== Widescreen support functions ====== | ||
- | |||
- | ===== GetAspectRatio ===== | ||
- | '' | ||
- | |||
- | Returns the aspect ratio that ZDoom is currently using for [[zdoom> | ||
- | |||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Every aspect ratio constant is a fixed-point number equal to the corresponding ratio, for example, '' | ||
- | ===== Hud boundaries ===== | ||
- | '' | ||
- | |||
- | '' | ||
- | |||
- | '' | ||
- | |||
- | '' | ||
- | |||
- | 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 ===== | ||
- | '' | ||
- | |||
- | '' | ||
- | |||
- | 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 '' | ||
- | |||
- | |||
- | |||