Skip to content

Commit

Permalink
Remove unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 1, 2024
1 parent 4ba0b47 commit 4b0d4a2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 167 deletions.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,6 @@ set (PCH_SOURCES
common/rendering/hwrenderer/data/hw_collision.cpp
common/rendering/hwrenderer/data/hw_levelmesh.cpp
common/rendering/hwrenderer/data/hw_meshbuilder.cpp
common/rendering/hwrenderer/data/hw_mesh.cpp
common/rendering/hwrenderer/postprocessing/hw_postprocessshader.cpp
common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp
common/rendering/hwrenderer/postprocessing/hw_postprocess_cvars.cpp
Expand Down
111 changes: 0 additions & 111 deletions src/common/rendering/hwrenderer/data/hw_mesh.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions src/common/rendering/hwrenderer/data/hw_mesh.h

This file was deleted.

33 changes: 0 additions & 33 deletions src/common/rendering/hwrenderer/data/hw_meshbuilder.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#include "hw_meshbuilder.h"
#include "hw_mesh.h"
#include "v_video.h"

MeshBuilder::MeshBuilder()
Expand Down Expand Up @@ -79,38 +78,6 @@ void MeshBuilder::Apply()
mDrawLists = &mSortedLists[state];
}

std::unique_ptr<Mesh> MeshBuilder::Create()
{
if (mSortedLists.empty())
return {};

auto mesh = std::make_unique<Mesh>();

int applyIndex = 0;
for (auto& it : mSortedLists)
{
mesh->mApplys.Push(it.first);
for (MeshDrawCommand& command : it.second.mDraws)
{
command.ApplyIndex = applyIndex;
mesh->mDraws.Push(command);
}
for (MeshDrawCommand& command : it.second.mIndexedDraws)
{
command.ApplyIndex = applyIndex;
mesh->mIndexedDraws.Push(command);
}
applyIndex++;
}

// To do: the various mesh layers have to share the vertex buffer since some vertex allocations happen at the Process stage
//mesh->mVertices = std::move(mVertices);
//mVertices.Clear();
mesh->mVertices = mVertices;

return mesh;
}

std::pair<FFlatVertex*, unsigned int> MeshBuilder::AllocVertices(unsigned int count)
{
unsigned int offset = mVertices.Reserve(count);
Expand Down
2 changes: 0 additions & 2 deletions src/common/rendering/hwrenderer/data/hw_meshbuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ class MeshBuilder : public FRenderState
void EnableStencil(bool on) override { }
void EnableDepthTest(bool on) override { }

std::unique_ptr<Mesh> Create();

struct DrawLists
{
TArray<MeshDrawCommand> mDraws;
Expand Down

0 comments on commit 4b0d4a2

Please sign in to comment.