1 module d2d.rendering.shape;
2 
3 import d2d;
4 
5 /// Base class for Shapes.
6 class Shape : Transformable, IDrawable
7 {
8 	/// Abstract draw function called from `IRenderTarget`.
9 	abstract void draw(IRenderTarget target, ShaderProgram shader = null);
10 
11 	/// Property holding the assigned texture.
12 	public @property ref Texture texture()
13 	{
14 		return _texture;
15 	}
16 
17 	private Texture _texture;
18 }