add: Canvas::Clear method to clear canvas
This commit is contained in:
parent
09c15c9099
commit
523262866a
|
|
@ -445,6 +445,12 @@ namespace easy2d
|
||||||
cache_expired_ = true;
|
cache_expired_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Canvas::Clear()
|
||||||
|
{
|
||||||
|
render_target_->Clear();
|
||||||
|
cache_expired_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
spImage Canvas::ExportToImage() const
|
spImage Canvas::ExportToImage() const
|
||||||
{
|
{
|
||||||
auto image = new Image(GetBitmap());
|
auto image = new Image(GetBitmap());
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,9 @@ namespace easy2d
|
||||||
// ¡žśĚîłä
|
// ¡žśĚîłä
|
||||||
void FillPath();
|
void FillPath();
|
||||||
|
|
||||||
|
// 헌왕뺌꼈
|
||||||
|
void Clear();
|
||||||
|
|
||||||
// ÉčÖĂĚîłäŃŐÉŤ
|
// ÉčÖĂĚîłäŃŐÉŤ
|
||||||
void SetFillColor(
|
void SetFillColor(
|
||||||
const Color& color
|
const Color& color
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue