ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new: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
new:widescreen [2018/02/21 14:10] korshunnew:widescreen [2018/02/21 14:14] korshun
Line 1: Line 1:
 ====== Widescreen support ====== ====== Widescreen support ======
  
-===== Screen boundaries =====+These function enable true widescreen support in HUD scripts. 
 + 
 +Actual screen boundaries in widescreen are outside the [[HUD coordinate system]]'s rectangle. These functions can calculate true screen boundaries in [[HUD coordinate system]]. 
 + 
 +===== Calculating screen boundaries =====
  
   * ''void HudSetVirtualSize(fixed width, fixed height)''   * ''void HudSetVirtualSize(fixed width, fixed height)''
Line 20: Line 24:
 </code> </code>
  
-Screen boundaries can be calculated for any [[HUD coordinate system]] size without calling ''HudSetVirtualSize'':+Screen boundaries in current aspect ratio can be calculated for any [[HUD coordinate system]] size without calling ''HudSetVirtualSize'':
  
   * ''fixed HudX1For(fixed width)'' or ''fixed HudLeftFor(fixed width)'' -- left boundary for given [[HUD coordinate system]] width.   * ''fixed HudX1For(fixed width)'' or ''fixed HudLeftFor(fixed width)'' -- left boundary for given [[HUD coordinate system]] width.
new/widescreen.txt · Last modified: 2018/02/21 14:14 by korshun