Welcome to mirror list, hosted at ThFree Co, Russian Federation.

icon.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9279ca1e44a34ff50d9f4e7592cba2432ec05d5 (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 "../std/string.hpp"

#include "resource.hpp"

namespace graphics
{
  struct Icon : public Resource
  {
    struct Info : public Resource::Info
    {
      string m_name;

      Info();
      Info(string const & name);

      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;

    Icon(m2::RectU const & texRect,
         int pipelineID,
         Info const & info);

    void render(void * dst);
    Resource::Info const * info() const;
  };
}