Skip to content

Commit

Permalink
Refactor|BiasSurface: Continued reworking and cleaning up BiasSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jun 26, 2013
1 parent 061dca3 commit f860219
Show file tree
Hide file tree
Showing 6 changed files with 248 additions and 253 deletions.
4 changes: 1 addition & 3 deletions doomsday/client/include/render/biassurface.h
Expand Up @@ -55,12 +55,10 @@ class BiasSurface
* @param colors Array of colors to be written to.
* @param verts Array of vertices to be lit.
* @param vertCount Number of vertices (in the array) to be lit.
* @param surfaceNormal Surface normal.
* @param sectorLightLevel Sector light level.
*/
void lightPoly(struct ColorRawf_s *colors, struct rvertex_s const *verts,
size_t vertCount, de::Vector3f const &surfaceNormal,
float sectorLightLevel);
int vertCount, float sectorLightLevel);

void updateAfterMove();

Expand Down
13 changes: 10 additions & 3 deletions doomsday/client/include/render/biastracker.h
Expand Up @@ -31,7 +31,14 @@ class BiasTracker
static int const MAX_TRACKED = (de::Map::MAX_BIAS_SOURCES / 8);

public:
BiasTracker() { de::zap(_changes); }
BiasTracker();

BiasTracker &operator = (BiasTracker const &other);

/**
* Clear the tracker reseting all bits to zero.
*/
void clear();

/**
* Sets/clears a bit in the tracker for the given index.
Expand All @@ -49,9 +56,9 @@ class BiasTracker
void apply(BiasTracker const &src);

/**
* Clears changes of src.
* Remove changes of src.
*/
void clear(BiasTracker const &src);
void remove(BiasTracker const &src);

private:
uint _changes[MAX_TRACKED];
Expand Down

0 comments on commit f860219

Please sign in to comment.