[DEBUG] set some function const
This commit is contained in:
parent
03d4b44747
commit
9f546dd5ed
@ -438,7 +438,7 @@ namespace agg
|
|||||||
draw::ParseColor(_input, *this);
|
draw::ParseColor(_input, *this);
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t Get(void)
|
uint32_t Get(void) const
|
||||||
{
|
{
|
||||||
return ((uint32_t)r<<24)+((uint32_t)g<<16)+((uint32_t)b<<8)+((uint32_t)a);
|
return ((uint32_t)r<<24)+((uint32_t)g<<16)+((uint32_t)b<<8)+((uint32_t)a);
|
||||||
};
|
};
|
||||||
|
@ -480,14 +480,14 @@ etk::CCout& agg::operator <<(etk::CCout &os, const struct agg::rgba8& obj)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
etk::UString draw::GetHexString(draw::Color& color)
|
etk::UString draw::GetHexString(const draw::Color& color)
|
||||||
{
|
{
|
||||||
char colorText[256];
|
char colorText[256];
|
||||||
sprintf(colorText, "0x%08X", color.Get());
|
sprintf(colorText, "0x%08X", color.Get());
|
||||||
return colorText;
|
return colorText;
|
||||||
}
|
}
|
||||||
|
|
||||||
etk::UString draw::GetString(draw::Color& color)
|
etk::UString draw::GetString(const draw::Color& color)
|
||||||
{
|
{
|
||||||
char colorText[256];
|
char colorText[256];
|
||||||
sprintf(colorText, "#%08X", color.Get());
|
sprintf(colorText, "#%08X", color.Get());
|
||||||
|
@ -84,8 +84,8 @@ namespace draw {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void ParseColor(const char* _input, struct agg::rgba8& color);
|
void ParseColor(const char* _input, struct agg::rgba8& color);
|
||||||
etk::UString GetHexString(draw::Color& color);
|
etk::UString GetHexString(const draw::Color& color);
|
||||||
etk::UString GetString(draw::Color& color);
|
etk::UString GetString(const draw::Color& color);
|
||||||
|
|
||||||
namespace color {
|
namespace color {
|
||||||
extern const Color none;
|
extern const Color none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user