Moved r_line into a class and implemented proper parameter passing between r_line and r_bsp, r_walldraw, r_wallsetup, r_decal, r_wallsprite, r_fogboundary, r_portal and r_playersprite
This commit is contained in:
parent
aa11534033
commit
a4c0e29913
18 changed files with 239 additions and 233 deletions
|
|
@ -153,7 +153,7 @@ namespace swrenderer
|
|||
}
|
||||
}
|
||||
|
||||
void PrepWall(float *vstep, fixed_t *upos, double walxrepeat, int x1, int x2)
|
||||
void PrepWall(float *vstep, fixed_t *upos, double walxrepeat, int x1, int x2, const FWallTmapVals &WallT)
|
||||
{
|
||||
float uOverZ = WallT.UoverZorg + WallT.UoverZstep * (float)(x1 + 0.5 - CenterX);
|
||||
float invZ = WallT.InvZorg + WallT.InvZstep * (float)(x1 + 0.5 - CenterX);
|
||||
|
|
@ -191,7 +191,7 @@ namespace swrenderer
|
|||
}
|
||||
}
|
||||
|
||||
void PrepLWall(fixed_t *upos, double walxrepeat, int x1, int x2)
|
||||
void PrepLWall(fixed_t *upos, double walxrepeat, int x1, int x2, const FWallTmapVals &WallT)
|
||||
{
|
||||
float uOverZ = WallT.UoverZorg + WallT.UoverZstep * (float)(x1 + 0.5 - CenterX);
|
||||
float invZ = WallT.InvZorg + WallT.InvZstep * (float)(x1 + 0.5 - CenterX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue