blob: 96f1abc5bb8146fc0c635ed2d9bf5801f6aa0d24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "resource.hpp"
#include "color.hpp"
namespace graphics
{
struct Brush : public Resource
{
struct Info : public Resource::Info
{
Color m_color;
Info();
explicit Info(Color const & color);
Resource::Info const & cacheKey() const;
m2::PointU const resourceSize() const;
Resource * createResource(m2::RectU const & texRect,
uint8_t pipelineID) const;
bool lessThan(Resource::Info const * r) const;
};
Info m_info;
Brush(m2::RectU const & texRect,
uint8_t pipelineID,
Info const & info);
void render(void * dst);
Resource::Info const * info() const;
};
}
|