Skip to content

Commit

Permalink
Cleanup|Client|World: Disabled more code related to “bledit”
Browse files Browse the repository at this point in the history
IssueID #2197
  • Loading branch information
skyjake committed Feb 6, 2017
1 parent b778a8e commit b696000
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 28 deletions.
1 change: 0 additions & 1 deletion doomsday/apps/client/include/BiasIllum

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/BiasSource

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/BiasTracker

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/Grabbable

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/Hand

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/HueCircle

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/HueCircleVisual

This file was deleted.

1 change: 0 additions & 1 deletion doomsday/apps/client/include/Shard

This file was deleted.

4 changes: 1 addition & 3 deletions doomsday/apps/client/include/client/clientsubsector.h
Expand Up @@ -33,7 +33,7 @@

#include "render/ilightsource.h"

class Shard;
//class Shard;

namespace world {

Expand Down Expand Up @@ -142,7 +142,6 @@ class ClientSubsector : public Subsector, public ILightSource
* @see Map::biasLastChangeOnFrame()
*/
de::duint biasLastChangeOnFrame() const;
#endif

/**
* Returns the geometry Shard for the specified @a mapElement and geometry
Expand All @@ -156,7 +155,6 @@ class ClientSubsector : public Subsector, public ILightSource
*/
Shard &shard(MapElement &mapElement, de::dint geomId);

#if 0
/**
* Shards owned by the Subsector should call this periodically to update
* their bias lighting contributions.
Expand Down
4 changes: 4 additions & 0 deletions doomsday/apps/client/include/render/shard.h
@@ -1,3 +1,5 @@
#if 0

/** @file shard.h 3D map geometry fragment.
*
* @authors Copyright © 2014 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -95,3 +97,5 @@ class Shard
};

#endif // DENG_CLIENT_RENDER_SHARD_H

#endif
4 changes: 3 additions & 1 deletion doomsday/apps/client/include/world/clientserverworld.h
Expand Up @@ -31,7 +31,7 @@
namespace world {
class Map;
#ifdef __CLIENT__
class Hand;
//class Hand;
#endif
}

Expand Down Expand Up @@ -140,6 +140,7 @@ class ClientServerWorld : public World
*/
void endFrame();

#if 0
/**
* Returns the hand of the "user" in the world. Used for manipulating elements
* for the purposes of runtime map editing.
Expand All @@ -148,6 +149,7 @@ class ClientServerWorld : public World
* written here if not @c nullptr.
*/
world::Hand &hand(de::ddouble *distance = nullptr) const;
#endif

#endif // __CLIENT__

Expand Down
4 changes: 4 additions & 0 deletions doomsday/apps/client/include/world/grabbable.h
@@ -1,3 +1,5 @@
#if 0

/** @file grabbable.h Grabbable.
*
* @authors Copyright © 2013 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -188,3 +190,5 @@ class Grabbable
} // namespace world

#endif // DENG_WORLD_GRABBABLE_H

#endif
4 changes: 4 additions & 0 deletions doomsday/apps/client/include/world/hand.h
@@ -1,3 +1,5 @@
#if 0

/** @file hand.h Hand (metaphor) for the manipulation of "grabbables".
*
* @authors Copyright © 2013-2015 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -173,3 +175,5 @@ class Hand : DENG2_OBSERVES(ClientServerWorld, FrameEnd)
} // namespace world

#endif // DENG_WORLD_HAND_H

#endif
2 changes: 1 addition & 1 deletion doomsday/apps/client/include/world/map.h
Expand Up @@ -50,7 +50,7 @@
#ifdef __CLIENT__
# include "world/clientserverworld.h"
# include "Generator"
# include "BiasSource"
//# include "BiasSource"
# include "Lumobj"
# include "render/skydrawable.h"
#endif
Expand Down
14 changes: 9 additions & 5 deletions doomsday/apps/client/src/client/clientsubsector.cpp
Expand Up @@ -30,11 +30,11 @@
#include "client/cledgeloop.h"

#include "render/rend_main.h" // Rend_SkyLightColor(), useBias
#include "BiasIllum"
#include "BiasTracker"
//#include "BiasIllum"
//#include "BiasTracker"
#include "LightDecoration"
#include "MaterialAnimator"
#include "Shard"
//#include "Shard"
#include "WallEdge"

#include "misc/face.h"
Expand Down Expand Up @@ -156,7 +156,9 @@ DENG2_PIMPL(ClientSubsector)
{
MapElement *mapElement;
dint geomId;
#if 0
std::unique_ptr<Shard> shard;
#endif

GeometryData(MapElement *mapElement, dint geomId)
: mapElement(mapElement)
Expand Down Expand Up @@ -198,7 +200,9 @@ DENG2_PIMPL(ClientSubsector)
std::unique_ptr<BoundaryData> boundaryData;

GeometryGroups geomGroups;
#if 0
QHash<Shard *, GeometryData *> shardToGeomData; ///< Reverse lookup.
#endif

/// Subspaces in the neighborhood effecting environmental audio characteristics.
typedef QSet<ConvexSubspace *> ReverbSubspaces;
Expand Down Expand Up @@ -711,6 +715,7 @@ DENG2_PIMPL(ClientSubsector)
return *foundGroup->insert(geomId, new GeometryData(&mapElement, geomId));
}

#if 0
/**
* Find the GeometryData for the given @a shard.
*/
Expand All @@ -723,6 +728,7 @@ DENG2_PIMPL(ClientSubsector)
}
return nullptr;
}
#endif

void addReverbSubspace(ConvexSubspace *subspace)
{
Expand Down Expand Up @@ -1721,7 +1727,6 @@ static dint countIlluminationPoints(MapElement &mapElement, dint DENG2_DEBUG_ONL
}
return 0;
}
#endif

Shard &ClientSubsector::shard(MapElement &mapElement, dint geomId)
{
Expand All @@ -1742,7 +1747,6 @@ Shard *ClientSubsector::findShard(MapElement &mapElement, dint geomId)
return nullptr;
}

#if 0
/**
* @todo This could be enhanced so that only the lights on the right side of the
* surface are taken into consideration.
Expand Down
10 changes: 6 additions & 4 deletions doomsday/apps/client/src/render/rend_main.cpp
Expand Up @@ -37,14 +37,14 @@
#include "BspLeaf"
#include "Contact"
#include "ConvexSubspace"
#include "Hand"
//#include "Hand"
#include "client/clientsubsector.h"
#include "client/clskyplane.h"
#include "BiasIllum"
#include "HueCircleVisual"
//#include "BiasIllum"
//#include "HueCircleVisual"
#include "LightDecoration"
#include "Lumobj"
#include "Shard"
//#include "Shard"
#include "SkyFixEdge"
#include "TriangleStripBuilder"
#include "WallEdge"
Expand Down Expand Up @@ -6463,7 +6463,9 @@ void Rend_Register()
fx::Bloom::consoleRegister();
fx::Vignette::consoleRegister();
fx::LensFlares::consoleRegister();
#if 0
Shard::consoleRegister();
#endif
VR_ConsoleRegister();
}

Expand Down
4 changes: 4 additions & 0 deletions doomsday/apps/client/src/render/shard.cpp
@@ -1,3 +1,5 @@
#if 0

/** @file shard.cpp 3D map geometry shard.
*
* @authors Copyright © 2014 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -142,3 +144,5 @@ void Shard::consoleRegister() // static
C_VAR_INT("rend-dev-bias-affected", &devUpdateBiasContributors, CVF_NO_ARCHIVE, 0, 1);
#endif
}

#endif
14 changes: 10 additions & 4 deletions doomsday/apps/client/src/world/base/clientserverworld.cpp
Expand Up @@ -78,8 +78,8 @@
# include "client/cledgeloop.h"
# include "client/clientsubsector.h"

# include "Hand"
# include "HueCircle"
//# include "Hand"
//# include "HueCircle"
# include "Lumobj"

# include "render/viewports.h" // R_ResetViewer
Expand Down Expand Up @@ -308,9 +308,11 @@ DENG2_PIMPL(ClientServerWorld)
Record fallbackMapInfo; ///< Used when no effective MapInfo definition.

timespan_t time = 0; ///< World-wide time.
#if 0
#ifdef __CLIENT__
std::unique_ptr<Hand> hand; ///< For map editing/manipulation.
#endif
#endif // 0

Impl(Public *i) : Base(i)
{
Expand Down Expand Up @@ -769,13 +771,15 @@ DENG2_PIMPL(ClientServerWorld)
}

#ifdef __CLIENT__
#if 0
void updateHandOrigin()
{
DENG2_ASSERT(hand != nullptr && self().hasMap());

viewdata_t const *viewData = &::viewPlayer->viewport();
hand->setOrigin(viewData->current.origin + viewData->frontVec.xzy() * handDistance);
}
#endif // 0

DENG2_PIMPL_AUDIENCE(FrameBegin)
DENG2_PIMPL_AUDIENCE(FrameEnd)
Expand Down Expand Up @@ -914,6 +918,7 @@ void ClientServerWorld::tick(timespan_t elapsed)
}

#ifdef __CLIENT__
#if 0
Hand &ClientServerWorld::hand(ddouble *distance) const
{
// Time to create the hand?
Expand All @@ -932,6 +937,7 @@ Hand &ClientServerWorld::hand(ddouble *distance) const
}
return *d->hand;
}
#endif // 0

void ClientServerWorld::beginFrame(bool resetNextViewer)
{
Expand All @@ -941,19 +947,19 @@ void ClientServerWorld::beginFrame(bool resetNextViewer)

void ClientServerWorld::endFrame()
{
#if 0
if(hasMap() && d->hand)
{
d->updateHandOrigin();

#if 0
// If the HueCircle is active update the current edit color.
if(HueCircle *hueCircle = SBE_HueCircle())
{
viewdata_t const *viewData = &viewPlayer->viewport();
d->hand->setEditColor(hueCircle->colorAt(viewData->frontVec));
}
#endif
}
#endif

// Notify interested parties that the current frame has ended.
DENG2_FOR_AUDIENCE2(FrameEnd, i) i->worldSystemFrameEnds();
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/world/base/map.cpp
Expand Up @@ -62,7 +62,7 @@
# include "Contact"
# include "ContactSpreader"

# include "BiasTracker"
//# include "BiasTracker"
# include "LightDecoration"
# include "Lumobj"
# include "WallEdge"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/world/base/polyobj.cpp
Expand Up @@ -32,7 +32,7 @@
#ifdef __CLIENT__
# include "client/clientsubsector.h"

# include "Shard"
//# include "Shard"
# include "render/rend_main.h" // useBias
#endif

Expand Down
4 changes: 4 additions & 0 deletions doomsday/apps/client/src/world/grabbable.cpp
@@ -1,3 +1,5 @@
#if 0

/** @file grabbable.cpp Grabbable.
*
* @authors Copyright © 2013 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -83,3 +85,5 @@ void Grabbable::setLock(bool enable)
}

} // namespace world

#endif
4 changes: 4 additions & 0 deletions doomsday/apps/client/src/world/hand.cpp
@@ -1,3 +1,5 @@
#if 0

/** @file hand.cpp Hand (metaphor) for the manipulation of "grabbables".
*
* @authors Copyright © 2013 Daniel Swanson <danij@dengine.net>
Expand Down Expand Up @@ -301,3 +303,5 @@ void Hand::worldSystemFrameEnds()
}

} // namespace world

#endif

0 comments on commit b696000

Please sign in to comment.