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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-08-12 16:52:34 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:24:45 +0300
commitbe0d98779a2e343e83e570d04798f9b34fa865fc (patch)
tree1752ec223df0a84c0370468b5192d24425c552f9 /drape/texture.hpp
parentc142eb80213ac198394d39aa0f9f9d6e679cb9d0 (diff)
[drape] now texture store pixel format
Diffstat (limited to 'drape/texture.hpp')
-rw-r--r--drape/texture.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/drape/texture.hpp b/drape/texture.hpp
index ed19b6f9b6..4fba17506b 100644
--- a/drape/texture.hpp
+++ b/drape/texture.hpp
@@ -2,6 +2,7 @@
#include "pointers.hpp"
#include "glconstants.hpp"
+#include "drape_global.hpp"
#include "../geometry/rect2d.hpp"
@@ -14,13 +15,6 @@ namespace dp
class Texture
{
public:
- enum TextureFormat
- {
- RGBA8,
- RGBA4,
- ALPHA
- };
-
enum ResourceType
{
Symbol,
@@ -61,6 +55,7 @@ public:
virtual ResourceInfo const * FindResource(Key const & key) const = 0;
+ TextureFormat GetFormat() const;
uint32_t GetWidth() const;
uint32_t GetHeight() const;
float GetS(uint32_t x) const;
@@ -78,6 +73,7 @@ private:
int32_t m_textureID;
uint32_t m_width;
uint32_t m_height;
+ TextureFormat m_format;
};
} // namespace dp