Skip to content

Commit

Permalink
Renderer: Current ConvexSubspace is now a draw state variable
Browse files Browse the repository at this point in the history
Previously a BspLeaf. (It is now impossible to attempt drawing with
a degenerate BSP leaf).
  • Loading branch information
danij-deng committed Oct 22, 2014
1 parent 901c906 commit dfe2151
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 167 deletions.
3 changes: 2 additions & 1 deletion doomsday/client/include/render/viewports.h
Expand Up @@ -29,6 +29,7 @@
#include <de/rect.h>

class BspLeaf;
class ConvexSubspace;
struct Generator;
class Lumobj;

Expand Down Expand Up @@ -196,7 +197,7 @@ bool R_ViewerLumobjIsHidden(int idx);
*/
void R_ViewerClipLumobj(Lumobj *lum);

void R_ViewerClipLumobjBySight(Lumobj *lum, BspLeaf *bspLeaf);
void R_ViewerClipLumobjBySight(Lumobj *lum, ConvexSubspace *subspace);

/**
* Attempt to set up a view grid and calculate the viewports. Set 'numCols' and
Expand Down

0 comments on commit dfe2151

Please sign in to comment.