2020-11-19 10:31:49 +00:00
|
|
|
class Drawable:
|
2021-01-27 10:35:47 +00:00
|
|
|
"""A base class for all classes holding opengl data."""
|
|
|
|
|
2020-11-19 10:31:49 +00:00
|
|
|
def draw(self, *args, **kwargs):
|
2021-01-27 10:35:47 +00:00
|
|
|
"""Draw the opengl data."""
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def unload(self):
|
|
|
|
"""Unload the opengl data."""
|
2020-11-19 10:31:49 +00:00
|
|
|
raise NotImplementedError
|