Add LineRenderer

This commit is contained in:
Thraix
2024-10-03 22:07:47 +02:00
parent d788a7e8fd
commit dc735c4df7
8 changed files with 195 additions and 6 deletions
@@ -7,6 +7,7 @@
#include "copium/renderer/RendererVertex.h"
#include "copium/mesh/VertexPassthrough.h"
#include "copium/mesh/Vertex.h"
#include "copium/renderer/LineVertex.h"
#include "copium/util/FileSystem.h"
namespace Copium
@@ -44,6 +45,11 @@ namespace Copium
creator.SetVertexDescriptor(Vertex::GetDescriptor());
creator.SetBlending(metaFileClass.GetValue("alpha-blending", "false") == "true" ? true : false);
}
else if (type == "LineRenderer")
{
creator.SetVertexDescriptor(LineVertex::GetDescriptor());
creator.SetPrimitiveTopology(VK_PRIMITIVE_TOPOLOGY_LINE_LIST);
}
InitializeDescriptorSetLayout(creator);
InitializePipeline(creator);
}