![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
Client-side Game-Logic APIs. More...
Client-side Game-Logic APIs.
APIs used by HudC progs and the client progs exclusively.
By default, a HudC progs is loaded from <gamedir>/hud.dat.
If it is present, it is the chosen default. If it doesn't exist, Nuclide will not display a Heads-Up-Display. The game-specific code (non-Nuclide) can also choose to draw its own HUD by providing implementations of the following functions:
This will force that HUD, if implemented within the game's csprogs.dat.
From base/src/client/hud.qc
As you can see, you'll be primarily using functions from the drawAPI in order to display text and images on screen. You also can load external font definitions and query the display properties using the fontAPI and screenAPI
Classes | |
| struct | fontAPI_t |
| Font library. More... | |
| struct | surfaceAPI_t |
| Surface library. More... | |
| struct | drawAPI_t |
| Draw library. More... | |
| struct | playerAPI_t |
| Player library. More... | |
| struct | weaponAPI_t |
| Weapon library. More... | |
| struct | spectatingAPI_t |
| Spectating library. More... | |
| struct | atlasPicAPI_t |
| atlasPic library More... | |
| struct | materialAPI_t |
| material library More... | |
Variables | |
| var fontAPI_t | font |
| Access fontAPI_t functions using this variable. | |
| var surfaceAPI_t | screen |
| Access surfaceAPI_t functions using this variable. | |
| var drawAPI_t | draw |
| Access drawAPI_t functions using this variable. | |
| var playerAPI_t | player |
| Access playerAPI_t functions using this variable. | |
| var weaponAPI_t | weapon |
| Access weaponAPI_t functions using this variable. | |
| var spectatingAPI_t | spectating |
| Access spectatingAPI_t functions using this variable. | |
| var atlasPicAPI_t | atlasPic |
| Access atlasPicAPI_t functions using this variable. | |
| var materialAPI_t | material |
| Access atlasPicAPI_t functions using this variable. | |
| var atlasPicAPI_t atlasPic |
Access atlasPicAPI_t functions using this variable.
| var materialAPI_t material |
Access atlasPicAPI_t functions using this variable.
| var playerAPI_t player |
Access playerAPI_t functions using this variable.
| var surfaceAPI_t screen |
Access surfaceAPI_t functions using this variable.
| var spectatingAPI_t spectating |
Access spectatingAPI_t functions using this variable.
| var weaponAPI_t weapon |
Access weaponAPI_t functions using this variable.