BRE12
TextureLoader.h
1 #pragma once
2 
3 #include <string>
4 #include <unordered_map>
5 
6 namespace YAML {
7 class Node;
8 }
9 
10 struct ID3D12CommandAllocator;
11 struct ID3D12GraphicsCommandList;
12 struct ID3D12Resource;
13 
14 namespace BRE {
16 public:
18  {}
19  TextureLoader(const TextureLoader&) = delete;
20  const TextureLoader& operator=(const TextureLoader&) = delete;
21  TextureLoader(TextureLoader&&) = delete;
22  TextureLoader& operator=(TextureLoader&&) = delete;
23 
24  void LoadTextures(const YAML::Node& rootNode,
25  ID3D12CommandAllocator& commandAllocator,
26  ID3D12GraphicsCommandList& commandList) noexcept;
27 
28  ID3D12Resource& GetTexture(const std::string& name) noexcept;
29 
30 private:
31  std::unordered_map<std::string, ID3D12Resource*> mTextureByName;
32 };
33 }
34 
Definition: Camera.cpp:8
Definition: TextureLoader.h:15
Definition: DrawableObjectLoader.h:10
Definition: node.h:29