Methods for getting texture coordinates

This commit is contained in:
Roman Sorokin 2014-09-15 14:27:35 +03:00 committed by Alex Zolotarev
parent 5a58193334
commit 7fc1c71843
2 changed files with 9 additions and 0 deletions

View file

@ -17,6 +17,7 @@ public:
virtual void GetSymbolRegion(string const & symbolName, SymbolRegion & region) const;
virtual bool GetGlyphRegion(strings::UniChar charCode, GlyphRegion & region) const;
virtual void GetStippleRegion(StipplePenKey const & pen, StippleRegion & region) const;
virtual void GetColorRegion(ColorKey const & pen, TextureSetHolder::ColorRegion & region) const;
virtual int GetMaxTextureSet() const;
virtual void UpdateDynamicTextures();

View file

@ -2,6 +2,7 @@
#include "texture.hpp"
#include "stipple_pen_resource.hpp"
#include "texture_of_colors.hpp"
#include "../base/string_utils.hpp"
@ -69,9 +70,16 @@ public:
uint32_t GetTemplateLength() const;
};
class ColorRegion : public BaseRegion
{
public:
ColorRegion() : BaseRegion() {}
};
virtual void GetSymbolRegion(string const & symbolName, SymbolRegion & region) const = 0;
virtual bool GetGlyphRegion(strings::UniChar charCode, GlyphRegion & region) const = 0;
virtual void GetStippleRegion(StipplePenKey const & pen, StippleRegion & region) const = 0;
virtual void GetColorRegion(ColorKey const & pen, ColorRegion & region) const = 0;
virtual int GetMaxTextureSet() const = 0;
virtual void UpdateDynamicTextures() = 0;