ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudlib

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
functions:hudlib [2016/08/10 13:23] – [HudSetShowToEveryone] korshunfunctions:hudlib [2016/08/10 15:28] korshun
Line 8: Line 8:
  
 Only drawing functions change ZDoom's global message settings: [[zdoom>SetHudSize]] and [[zdoom>SetFont]]. Only drawing functions change ZDoom's global message settings: [[zdoom>SetHudSize]] and [[zdoom>SetFont]].
 +
 +===== Examples =====
 +
 +==== Simple 2D drawing ====
 +
 +<code>
 +HudSetPoint(320.0, 240.0);
 +HudDrawText(1, "Hello!");
 +</code>
 +
 +==== Simple 3D drawing ====
 +
 +<code>
 +HudSetCameraActor(0);
 +HudSetPoint3D(0.0, 0.0, 0.0);
 +HudDrawText(2, "This is the center of the map!"); 
  
 ===== Virtual screen size ===== ===== Virtual screen size =====