diff options
Diffstat (limited to 'txtgameengine/twod')
-rw-r--r-- | txtgameengine/twod/__init__.py | 1 | ||||
-rw-r--r-- | txtgameengine/twod/textures.py | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/twod/__init__.py b/txtgameengine/twod/__init__.py new file mode 100644 index 0000000..ec5e8aa --- /dev/null +++ b/txtgameengine/twod/__init__.py @@ -0,0 +1 @@ +from .textures import Texture diff --git a/txtgameengine/twod/textures.py b/txtgameengine/twod/textures.py new file mode 100644 index 0000000..01dde52 --- /dev/null +++ b/txtgameengine/twod/textures.py @@ -0,0 +1,11 @@ +import typing + +if typing.TYPE_CHECKING: + from ..app import TxtGameApp + + +class Texture: + def __init__(self, app: 'TxtGameApp', gl_texid: int): + self.app = app + self.gl_texid = gl_texid + |