Karma Engine
Loading...
Searching...
No Matches
Texture.h
1#pragma once
2
3#include "krpch.h"
4
5namespace Karma
6{
7 class VulkanTexture;
8
9 enum class TextureType
10 {
11 None = 0,
12 Image,
13 LightMap,
14 DiffusionMap
15 };
16
17 class KARMA_API Texture
18 {
19 public:
20 Texture();
21 Texture(TextureType tType, const char* filename, std::string textureName, std::string textureShaderName);
22
23 ~Texture();
24
25 // Getters
26 const std::string& GetTextureName() const { return m_TName; }
27 const std::string& GetTextureShaderName() const { return m_TShaderName; }
28 std::shared_ptr<VulkanTexture> GetVulkanTexture() const { return m_VulkanTexture; }
29
30 private:
31 TextureType m_TType;
32 std::string m_TName;
33 // Name to be used for identification in the shaders
34 std::string m_TShaderName;
35
36 // For Vulkan specific purposes
37 std::shared_ptr<VulkanTexture> m_VulkanTexture;
38 };
39}
Definition Texture.h:18
@ None
Definition KarmaTypes.h:33