mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
- buildutils: Replace sintable[]
use within Build with bsin()
/bcos()
, using bsinf()
/bcosf()
where appropriate.
* Includes a few header include shuffles to make it all come together.
This commit is contained in:
parent
b2c42d5d03
commit
32a1796728
9 changed files with 49 additions and 54 deletions
|
@ -1197,8 +1197,8 @@ void md3_vox_calcmat_common(tspriteptr_t tspr, const vec3f_t *a0, float f, float
|
|||
|
||||
k0 = ((float)(tspr->x+spriteext[tspr->owner].position_offset.x-globalposx))*f*(1.f/1024.f);
|
||||
k1 = ((float)(tspr->y+spriteext[tspr->owner].position_offset.y-globalposy))*f*(1.f/1024.f);
|
||||
k4 = (float)sintable[(tspr->ang+spriteext[tspr->owner].angoff+1024)&2047] * (1.f/16384.f);
|
||||
k5 = (float)sintable[(tspr->ang+spriteext[tspr->owner].angoff+ 512)&2047] * (1.f/16384.f);
|
||||
k4 = -bsinf(tspr->ang+spriteext[tspr->owner].angoff, -14);
|
||||
k5 = bcosf(tspr->ang+spriteext[tspr->owner].angoff, -14);
|
||||
k2 = k0*(1-k4)+k1*k5;
|
||||
k3 = k1*(1-k4)-k0*k5;
|
||||
k6 = - gsinang;
|
||||
|
@ -1403,10 +1403,10 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
|
|||
if ((sext->pivot_offset.z) && !(tspr->clipdist & TSPR_FLAGS_MDHACK)) // Compare with SCREEN_FACTORS above
|
||||
a0.z = (float)sext->pivot_offset.z / (gxyaspect * fxdimen * (65536.f/128.f) * (m0.z+m1.z));
|
||||
|
||||
k0 = (float)sintable[(sext->pitch+512)&2047] * (1.f/16384.f);
|
||||
k1 = (float)sintable[sext->pitch&2047] * (1.f/16384.f);
|
||||
k2 = (float)sintable[(sext->roll+512)&2047] * (1.f/16384.f);
|
||||
k3 = (float)sintable[sext->roll&2047] * (1.f/16384.f);
|
||||
k0 = bcosf(sext->pitch, -14);
|
||||
k1 = bsinf(sext->pitch, -14);
|
||||
k2 = bcosf(sext->roll, -14);
|
||||
k3 = bsinf(sext->roll, -14);
|
||||
}
|
||||
|
||||
VSMatrix imat = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue