From e5b6ba623aeb28ad9408358c58a3da12b1126396 Mon Sep 17 00:00:00 2001 From: rom Date: Fri, 23 Apr 2021 23:29:43 +0200 Subject: textures --- txtgameengine/twod/__init__.py | 1 + txtgameengine/twod/textures.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 txtgameengine/twod/__init__.py create mode 100644 txtgameengine/twod/textures.py (limited to 'txtgameengine/twod') 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 + -- cgit