diff options
Diffstat (limited to 'drape/drape_global.hpp')
-rw-r--r-- | drape/drape_global.hpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/drape/drape_global.hpp b/drape/drape_global.hpp index 73376750bc..326f9c2fb2 100644 --- a/drape/drape_global.hpp +++ b/drape/drape_global.hpp @@ -16,27 +16,6 @@ enum ApiVersion OpenGLES3 }; -enum TextureFormat -{ - RGBA8, - ALPHA, - RED_GREEN, - UNSPECIFIED -}; - -inline uint8_t GetBytesPerPixel(TextureFormat format) -{ - uint8_t result = 0; - switch (format) - { - case RGBA8: result = 4; break; - case ALPHA: result = 1; break; - case RED_GREEN: result = 2; break; - default: ASSERT(false, ()); break; - } - return result; -} - enum Anchor { Center = 0, @@ -72,8 +51,7 @@ struct FontDecl FontDecl(Color const & color, float size, bool isSdf = true, Color const & outlineColor = Color::Transparent()) : m_color(color), m_outlineColor(outlineColor), m_size(size), m_isSdf(isSdf) - { - } + {} Color m_color = Color::Transparent(); Color m_outlineColor = Color::Transparent(); |