BRE12
BRE
SceneLoader
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
{
15
class
TextureLoader
{
16
public
:
17
TextureLoader
()
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
BRE
Definition:
Camera.cpp:8
BRE::TextureLoader
Definition:
TextureLoader.h:15
YAML
Definition:
DrawableObjectLoader.h:10
YAML::Node
Definition:
node.h:29
Generated by
1.8.12