mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Add Mat4MultAdd macro.
This commit is contained in:
parent
c0df07b607
commit
02f8aa6b75
1 changed files with 7 additions and 0 deletions
|
@ -520,6 +520,13 @@ extern const vec_t *const quat_origin;
|
|||
QuatBlend ((m1) + 8, (m2) + 8, (b), (m) + 8); \
|
||||
QuatBlend ((m1) + 12, (m2) + 12, (b), (m) + 12); \
|
||||
} while (0)
|
||||
#define Mat4MultAdd(a,s,b,c) \
|
||||
do { \
|
||||
QuatMultAdd ((a) + 0, s, (b) + 0, (c) + 0); \
|
||||
QuatMultAdd ((a) + 4, s, (b) + 4, (c) + 4); \
|
||||
QuatMultAdd ((a) + 8, s, (b) + 8, (c) + 8); \
|
||||
QuatMultAdd ((a) + 12, s, (b) + 12, (c) + 12); \
|
||||
} while (0)
|
||||
|
||||
#define qfrandom(MAX) ((float) MAX * (rand() * (1.0 / (RAND_MAX + 1.0))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue