Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
SkeletalMeshRenderer.hpp
1#pragma once
2
3#include <string>
4#include <vector>
5#include <map>
6#include <glm/mat4x4.hpp>
7
8#include <Common/Graphics/Core.hpp>
9#include <Common/Rendering/RenderViewData.hpp>
10#include "EngineCore/AssetRenderer/BaseAssetRenderer.hpp"
11#include "Components/MeshRendererComponent.hpp"
12#include "Assets/Mesh3dAsset.hpp"
13
14namespace Grindstone {
15 namespace GraphicsAPI {
16 class CommandBuffer;
17 class DescriptorSet;
18 }
19
20 class EngineCore;
21
22 class SkeletalMeshRenderer : public BaseAssetRenderer {
23 public:
24 SkeletalMeshRenderer(EngineCore* engineCore);
25
27 GraphicsAPI::CommandBuffer* commandBuffer,
29 ) override;
30 static GraphicsAPI::DescriptorSetLayout* GetPerDrawDescriptorSetLayout();
31 private:
32 virtual std::string GetName() const override;
33 virtual void SetEngineDescriptorSet(GraphicsAPI::DescriptorSet* descriptorSet) override;
34
35 EngineCore* engineCore = nullptr;
36 std::string rendererName = "SkeletalMesh";
37 GraphicsAPI::DescriptorSet* engineDescriptorSet = nullptr;
38 static GraphicsAPI::DescriptorSetLayoutRef perDrawDescriptorSetLayout;
39 };
40}
Definition BaseAssetRenderer.hpp:25
Definition EngineCore.hpp:63
Definition CommandBuffer.hpp:109
Definition DescriptorSetLayout.hpp:17
Definition DescriptorSet.hpp:15
Definition Buffer.hpp:9
Definition Assert.hpp:14
Definition AssetRenderQueueContext.hpp:10
Definition GeometryRenderingStats.hpp:6