vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
Texture.hpp
Go to the documentation of this file.
1///
2/// @file Texture.hpp
3/// @brief This file contains the Texture Factory class
4/// @namespace ven
5///
6
7#pragma once
8
9#include <memory>
10#include <unordered_map>
11
13
14namespace ven {
15
16 ///
17 /// @class TextureFactory
18 /// @brief Class for Texture factory
19 /// @namespace ven
20 ///
22
23 public:
24
25 TextureFactory() = delete;
26 ~TextureFactory() = default;
27
32
33 static std::unique_ptr<Texture> create(Device& device, const std::string& filepath) { return std::make_unique<Texture>(device, filepath); }
34 static std::unordered_map<std::string, std::shared_ptr<Texture>> loadAll(Device& device, const std::string& folderPath);
35
36 }; // class TextureFactory
37
38} // namespace ven
This file contains the Texture class.
Class for device.
Definition Device.hpp:35
Class for Texture factory.
Definition Texture.hpp:21
~TextureFactory()=default
TextureFactory(TextureFactory &&)=delete
TextureFactory & operator=(TextureFactory &&)=delete
static std::unique_ptr< Texture > create(Device &device, const std::string &filepath)
Definition Texture.hpp:33
static std::unordered_map< std::string, std::shared_ptr< Texture > > loadAll(Device &device, const std::string &folderPath)
Definition Texture.cpp:6
TextureFactory & operator=(const TextureFactory &)=delete
TextureFactory(const TextureFactory &)=delete