This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hud_library [2017/04/18 13:18] – korshun | hud_library [2017/07/09 11:26] (current) – korshun | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| </ | </ | ||
| - | The only drawing functions in HUD Library are [[functions: | + | The only drawing functions in HUD Library are [[functions: |
| ===== Scaling ===== | ===== Scaling ===== | ||
| - | Scaling is implemented by calling SetHudSize with values that don't match those set in [[functions: | + | Scaling is implemented by calling |
| For example: | For example: | ||
| < | < | ||
| + | HudResetState(); | ||
| HudSetVirtualSize(640.0, | HudSetVirtualSize(640.0, | ||
| HudSetScale(0.5); | HudSetScale(0.5); | ||
| HudDrawText(1, | HudDrawText(1, | ||
| - | < | + | </code> |
| Will result in the following sequence of calls to ZDoom' | Will result in the following sequence of calls to ZDoom' | ||
| Line 39: | Line 40: | ||
| HudResetState(); | HudResetState(); | ||
| HudSetPoint3D(x, | HudSetPoint3D(x, | ||
| - | HudSetCameraActor(0); | + | HudSetCameraActor(0); |
| HudDrawText(1, | HudDrawText(1, | ||
| </ | </ | ||
| Line 47: | Line 48: | ||
| By default, 3D messages are automatically scaled with distance. You can disable this setting using [[functions: | By default, 3D messages are automatically scaled with distance. You can disable this setting using [[functions: | ||
| + | ===== State operations ===== | ||
| + | The whole [[HUD Library state]] can be reset to default using [[functions: | ||