Unravel Engine C++ Reference
Loading...
Searching...
No Matches
default_textures.h
Go to the documentation of this file.
1#pragma once
2
3#include "cloud_noise.h"
4#include <graphics/texture.h>
5#include <memory>
6
7namespace unravel
8{
9
11{
12public:
13 static auto get() -> default_textures&;
14
15 void generate();
16 void clear();
17
18 auto black_texture() const -> gfx::texture::ptr { return black_; }
19 auto white_texture() const -> gfx::texture::ptr { return white_; }
20 auto missing_texture() const -> gfx::texture::ptr { return missing_; }
23 auto transparent_texture() const -> gfx::texture::ptr { return transparent_; }
24
25 auto cloud_noise() -> cloud_noise_textures& { return cloud_noise_; }
26 auto cloud_noise() const -> const cloud_noise_textures& { return cloud_noise_; }
27
28private:
30
31 gfx::texture::ptr black_;
32 gfx::texture::ptr white_;
33 gfx::texture::ptr missing_;
34 gfx::texture::ptr transparent_;
35
36 cloud_noise_textures cloud_noise_;
37};
38
39} // namespace unravel
auto black_texture() const -> gfx::texture::ptr
auto white_texture() const -> gfx::texture::ptr
auto transparent_texture() const -> gfx::texture::ptr
static auto get() -> default_textures &
auto cloud_noise() const -> const cloud_noise_textures &
auto missing_texture() const -> gfx::texture::ptr
auto cloud_noise() -> cloud_noise_textures &