Xonotic
all.qh File Reference
#include "model.qh"
#include "all.inc"
+ Include dependency graph for all.qh:

Go to the source code of this file.

Macros

#define MODEL(name, path)
 

Functions

 MODEL (Null, "null")
 
 PRECACHE (Models)
 
 STATIC_INIT (NULLMDL)
 

Macro Definition Documentation

◆ MODEL

#define MODEL (   name,
  path 
)
Value:
string MDL_##name##_get() { return path; } \
REGISTER(Models, MDL, name, m_id, NEW(Model, MDL_##name##_get))
#define NEW(cname,...)
Definition: oo.qh:105
int m_id
Definition: effect.qh:19
Definition: model.qh:3

Definition at line 8 of file all.qh.

Referenced by PRECACHE().

Function Documentation

◆ MODEL()

MODEL ( Null  ,
"null"   
)

◆ PRECACHE()

PRECACHE ( Models  )

Definition at line 17 of file all.qh.

References FOREACH, MODEL, and REGISTRY_DEFINE_GET.

17  {
18  FOREACH(Models, true, it.model_precache(it));
19 }
#define FOREACH(list, cond, body)
Definition: iter.qh:19

◆ STATIC_INIT()

STATIC_INIT ( NULLMDL  )

Definition at line 12 of file all.qh.

13 {
14  precache_model("null");
15 }