Skip to content

Commit

Permalink
#5912: Move EdgeRenderIndices struct to Brush class, since it's only …
Browse files Browse the repository at this point in the history
…used privately. Remove unused file.
  • Loading branch information
codereader committed Mar 4, 2022
1 parent 2c4176d commit 7b01318
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 59 deletions.
16 changes: 15 additions & 1 deletion radiantcore/brush/Brush.h
Expand Up @@ -4,8 +4,8 @@

#include "Face.h"
#include "SelectableComponents.h"
#include "RenderableWireFrame.h"
#include "Translatable.h"
#include "render.h"
#include "render/VertexCb.h"

#include <sigc++/signal.h>
Expand Down Expand Up @@ -111,6 +111,20 @@ class Brush :
typedef std::vector<SelectableEdge> SelectableEdges;
SelectableEdges m_select_edges;

struct EdgeRenderIndices
{
RenderIndex first;
RenderIndex second;

EdgeRenderIndices()
: first(0), second(0)
{}

EdgeRenderIndices(const RenderIndex _first, const RenderIndex _second)
: first(_first), second(_second)
{}
};

// A list of all edge render indices, one for each unique edge
std::vector<EdgeRenderIndices> _edgeIndices;

Expand Down
54 changes: 0 additions & 54 deletions radiantcore/brush/RenderableWireFrame.h

This file was deleted.

1 change: 0 additions & 1 deletion tools/msvc/DarkRadiantCore.vcxproj
Expand Up @@ -745,7 +745,6 @@
<ClInclude Include="..\..\radiantcore\brush\PlanePoints.h" />
<ClInclude Include="..\..\radiantcore\brush\RenderableBrushVertices.h" />
<ClInclude Include="..\..\radiantcore\brush\RenderableWinding.h" />
<ClInclude Include="..\..\radiantcore\brush\RenderableWireFrame.h" />
<ClInclude Include="..\..\radiantcore\brush\SelectableComponents.h" />
<ClInclude Include="..\..\radiantcore\brush\TextureMatrix.h" />
<ClInclude Include="..\..\radiantcore\brush\TextureProjection.h" />
Expand Down
3 changes: 0 additions & 3 deletions tools/msvc/DarkRadiantCore.vcxproj.filters
Expand Up @@ -1845,9 +1845,6 @@
<ClInclude Include="..\..\radiantcore\brush\PlanePoints.h">
<Filter>src\brush</Filter>
</ClInclude>
<ClInclude Include="..\..\radiantcore\brush\RenderableWireFrame.h">
<Filter>src\brush</Filter>
</ClInclude>
<ClInclude Include="..\..\radiantcore\brush\SelectableComponents.h">
<Filter>src\brush</Filter>
</ClInclude>
Expand Down

0 comments on commit 7b01318

Please sign in to comment.