Karma Engine
Loading...
Searching...
No Matches
Renderer.h
1#pragma once
2
3#include "krpch.h"
4
5#include "RenderCommand.h"
6#include "Karma/Renderer/Camera/Camera.h"
7#include "glm/glm.hpp"
8#include "Renderer/Scene.h"
9
10namespace Karma
11{
12 class KARMA_API Renderer
13 {
14 public:
15 static void BeginScene(std::shared_ptr<Scene> scene);
16 static void EndScene();
17
18 static void Submit(std::shared_ptr<Scene> scene);
19
20 inline static RendererAPI::API GetAPI() { return RendererAPI::GetAPI(); }
21
22 static void DeleteData();
23
24 private:
25 // Needs to be in Scene class
26 struct SceneData
27 {
28 glm::mat4 ProjectionMatrix;
29 };
30
31 static SceneData* m_SceneData;
32 };
33}
Definition Renderer.h:13