Skip to content

Commit

Permalink
Refactor [Renderer]: Removed the D3D11 renderer & setup project to ad…
Browse files Browse the repository at this point in the history
…d a D3D12 renderer.

Added:
Added D3D12 dependencies.

Removed:
Removed the D3D11 renderer.
  • Loading branch information
Pixfri committed Dec 24, 2024
1 parent db4c739 commit 9314abf
Show file tree
Hide file tree
Showing 28 changed files with 52 additions and 1,548 deletions.
5 changes: 0 additions & 5 deletions Include/FlashlightEngine/Application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <FlashlightEngine/Core/Window.hpp>

#include <FlashlightEngine/Renderer/Renderer.hpp>

#include <expected>
#include <memory>
#include <string>
Expand All @@ -28,7 +26,6 @@ namespace FlashlightEngine {
virtual void OnUpdate() = 0;
virtual void OnRender() = 0;
bool OnWindowClose(WindowCloseEvent& e);
bool OnWindowResize(const WindowResizeEvent& e) const;

inline static Application& Get();
[[nodiscard]] inline Window& GetWindow() const;
Expand All @@ -38,8 +35,6 @@ namespace FlashlightEngine {
std::shared_ptr<Window> m_Window;

protected:
std::shared_ptr<Renderer> m_Renderer;

private:
bool m_Running = false;
static Application* m_Instance;
Expand Down
11 changes: 0 additions & 11 deletions Include/FlashlightEngine/EngineApplication.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <FlashlightEngine/Application.hpp>

#include <FlashlightEngine/Renderer/Shader.hpp>

namespace FlashlightEngine {
class EngineApplication final : public Application {
public:
Expand All @@ -24,15 +22,6 @@ namespace FlashlightEngine {
void OnRender() override;

private:
ShaderCollection m_MainShaderCollection;
std::unique_ptr<Buffer> m_TriangleVertexBuffer;

std::shared_ptr<Sampler> m_LinearSampler;
std::unique_ptr<Texture> m_FrogTexture;
std::unique_ptr<Texture> m_FallbackTexture;

bool m_UseFrogTexture = true;

void OnKeyPressed(const KeyDownEvent& event);
};
}
Expand Down
91 changes: 0 additions & 91 deletions Include/FlashlightEngine/Renderer/Buffer.hpp

This file was deleted.

11 changes: 0 additions & 11 deletions Include/FlashlightEngine/Renderer/Buffer.inl

This file was deleted.

46 changes: 0 additions & 46 deletions Include/FlashlightEngine/Renderer/Device.hpp

This file was deleted.

29 changes: 0 additions & 29 deletions Include/FlashlightEngine/Renderer/Device.inl

This file was deleted.

27 changes: 0 additions & 27 deletions Include/FlashlightEngine/Renderer/Enums.hpp

This file was deleted.

73 changes: 0 additions & 73 deletions Include/FlashlightEngine/Renderer/Renderer.hpp

This file was deleted.

14 changes: 0 additions & 14 deletions Include/FlashlightEngine/Renderer/Renderer.inl

This file was deleted.

47 changes: 0 additions & 47 deletions Include/FlashlightEngine/Renderer/Sampler.hpp

This file was deleted.

Loading

0 comments on commit 9314abf

Please sign in to comment.