NarcEngine 0.1.1
C++ Vulkan game engine
 
Loading...
Searching...
No Matches
Renderer.h
1//
2// Created by theoh on 08/03/2025.
3//
4
5#pragma once
6
7namespace narc_engine
8{
9 class Mesh;
10 class Material;
11
12 class NARC_ENGINE_API Renderer
13 {
14 public:
15 Renderer(const narc_io::Model3D* model, const Material* material);
16 ~Renderer();
17
18 GETTER const Material* getMaterial() const { return m_material; }
19 GETTER const Mesh* getMesh() const { return m_mesh.get(); }
20
21 GETTER const glm::mat4& getModelMatrix() const { return m_modelMatrix; }
22 TEMP_CODE void setModelMatrix(const glm::mat4& modelMatrix) { m_modelMatrix = modelMatrix; }
23
24 private:
25 std::unique_ptr<Mesh> m_mesh;
26 const Material* m_material;
27
28 glm::mat4 m_modelMatrix;
29 };
30} // narc_engine
Definition Material.h:12
Definition Mesh.h:13
Definition Model3D.h:16