2024-04-24 02:26:34 +00:00
|
|
|
import abc
|
|
|
|
|
|
|
|
|
|
|
|
class DrawEngine(abc.ABC):
|
2024-04-24 02:37:25 +00:00
|
|
|
@abc.abstractmethod
|
|
|
|
def init(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@abc.abstractmethod
|
|
|
|
def render(self, background_color: "Color", drawables: list["Doodle"]):
|
|
|
|
pass
|
|
|
|
|
2024-04-24 02:26:34 +00:00
|
|
|
@abc.abstractmethod
|
|
|
|
def circle_draw(self, screen):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@abc.abstractmethod
|
|
|
|
def rect_draw(self, screen):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@abc.abstractmethod
|
|
|
|
def line_draw(self, screen):
|
|
|
|
pass
|