first commit
This commit is contained in:
18
refactor/src/Icarus/Graphics/Animation/AbstractRenderable.cs
Normal file
18
refactor/src/Icarus/Graphics/Animation/AbstractRenderable.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Drawing;
|
||||
|
||||
namespace Icarus.Graphics.Animation
|
||||
{
|
||||
public abstract class AbstractRenderable
|
||||
: IRenderable
|
||||
{
|
||||
#region IRenderable
|
||||
public abstract System.Drawing.Size GetSize();
|
||||
public abstract void Render(System.Drawing.Rectangle destination, IRenderParameters parameters);
|
||||
#endregion
|
||||
|
||||
public void Render(Point coordinates, IRenderParameters parameters)
|
||||
{
|
||||
this.Render(new Rectangle(coordinates, Size.Empty), parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user