vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
texture_generators.h
1#pragma once
2
3#include <glm/glm.hpp>
4#include <nlohmann/json_fwd.hpp>
5
6#include "resource/asset/texture_asset.h"
7#include "resource/resource_handle.h"
8
9namespace Vkm::Engine {
10
11class ResourceManager;
12
24TextureHandle createSolidColorTexture(
25 glm::vec4 color,
26 ResourceManager& resourceManager,
27 TextureUsage usage = TextureUsage::Data
28);
29
36TextureHandle generateWhiteTexture(ResourceManager& resourceManager);
37
44TextureHandle generateBlackTexture(ResourceManager& resourceManager);
45
54TextureHandle generateNormalTexture(ResourceManager& resourceManager);
55
62TextureHandle generateGrayTexture(ResourceManager& resourceManager);
63
71TextureHandle createGeneratedTexture(const nlohmann::json& source, ResourceManager& resourceManager);
72
73} // namespace Vkm::Engine
Open type-erased resource registry with typed handles and generational lifetimes.
Definition resource_manager.h:46