Porytiles
Loading...
Searching...
No Matches
porytiles_tileset_component.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
7
8namespace porytiles2 {
9
11 public:
13
14 [[nodiscard]] bool is_empty() const;
15
16 [[nodiscard]] const Image<Rgba32> &bottom() const
17 {
18 return bottom_;
19 }
20
22 {
23 bottom_ = bottom;
24 }
25
26 [[nodiscard]] const Image<Rgba32> &middle() const
27 {
28 return middle_;
29 }
30
32 {
33 middle_ = middle;
34 }
35
36 [[nodiscard]] const Image<Rgba32> &top() const
37 {
38 return top_;
39 }
40
41 void top(const Image<Rgba32> &top)
42 {
43 top_ = top;
44 }
45
46 private:
47 Image<Rgba32> bottom_;
48 Image<Rgba32> middle_;
49 Image<Rgba32> top_;
50};
51
52} // namespace porytiles2
A template for two-dimensional images with arbitrarily typed pixel values.
Definition image.hpp:24
void middle(const Image< Rgba32 > &middle)
void bottom(const Image< Rgba32 > &bottom)