Nameless Engine
Loading...
Searching...
No Matches
TextureHandle.h
1#pragma once
2
3// Standard.
4#include <string>
5
6namespace ne {
7 class GpuResource;
8 class TextureManager;
9
16 // We expect that only texture manager will create texture handles.
17 friend class TextureManager;
18
19 public:
20 TextureHandle() = delete;
21
22 TextureHandle(const TextureHandle&) = delete;
23 TextureHandle& operator=(const TextureHandle&) = delete;
24
25 TextureHandle(TextureHandle&&) = delete;
26 TextureHandle& operator=(TextureHandle&&) = delete;
27
34
40 std::string getPathToResourceRelativeRes();
41
44
45 private:
57 const std::string& sPathToResourceRelativeRes,
59
65 const std::string sPathToResourceRelativeRes;
66
69
71 GpuResource* const pTexture = nullptr;
72 };
73}
Definition: GpuResource.h:16
Definition: TextureHandle.h:15
const std::string sPathToResourceRelativeRes
Definition: TextureHandle.h:65
TextureManager *const pTextureManager
Definition: TextureHandle.h:68
~TextureHandle()
Definition: TextureHandle.cpp:16
GpuResource *const pTexture
Definition: TextureHandle.h:71
GpuResource * getResource()
Definition: TextureHandle.cpp:12
std::string getPathToResourceRelativeRes()
Definition: TextureHandle.cpp:14
Definition: TextureManager.h:20