-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphicsEngine.h
More file actions
32 lines (30 loc) · 814 Bytes
/
GraphicsEngine.h
File metadata and controls
32 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "Renderer.h"
#include "Camera.h"
#include "TextureManager.h"
#include "MeshManager.h"
#include "Prerequisites.h"
#include "Constant.h"
class GraphicsEngine
{
public:
GraphicsEngine();
void Shutdown();
~GraphicsEngine();
public:
Renderer* GetRenderer();
TextureManager* GetTextureManager();
Camera* GetCamera();
MeshManager* GetMeshManager();
void GetVertexMeshLayoutShaderByteCodeAndSize(void** byte_code, size_t* size);
public:
static GraphicsEngine* Get();
private:
std::unique_ptr<Renderer> m_renderer = nullptr;
std::unique_ptr<TextureManager> m_texture_manager = nullptr;
std::unique_ptr<Camera> m_camera = nullptr;
std::unique_ptr<MeshManager> m_mesh_manager = nullptr;
static GraphicsEngine* m_engine;
void* m_mesh_layout_byte_code;
size_t m_mesh_layout_size = 0;
};