This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
functions:hudlib [2016/10/16 13:25] – korshun | functions:hudlib [2016/10/16 13:28] – [Hud boundaries] korshun | ||
---|---|---|---|
Line 54: | Line 54: | ||
===== Widescreen support ===== | ===== Widescreen support ===== | ||
+ | ==== Hud boundaries ==== | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | Return the boundaries of the screen for current virtual screen size, accounting for current **physical** aspect ratio. Equivalent to adding or subtracting a hud border manually. | ||
+ | |||
+ | **Example** | ||
+ | |||
+ | < | ||
+ | // This message will stick to the left border of the screen (with a gap), even in widescren. | ||
+ | HudSetPoint(HudLeft() + 3.0, 240.0); | ||
+ | </ | ||
+ | |||
+ | ==== Hud borders ==== | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | Return hud borders for current virtual screen size, accounting for current **physical** aspect ratio. | ||
===== 2D positioning ===== | ===== 2D positioning ===== |