diff options
author | rom <romangraef@gmail.com> | 2021-04-23 23:29:43 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-23 23:59:12 +0200 |
commit | e5b6ba623aeb28ad9408358c58a3da12b1126396 (patch) | |
tree | 70b3474196f28e4a2059c245888a6a4ac91a677b /txtgameengine/twod | |
parent | 99ab218d9a0964a9de10cf621ff82d4fbaaf50b9 (diff) | |
download | txtgameengine-e5b6ba623aeb28ad9408358c58a3da12b1126396.tar.gz txtgameengine-e5b6ba623aeb28ad9408358c58a3da12b1126396.tar.bz2 txtgameengine-e5b6ba623aeb28ad9408358c58a3da12b1126396.zip |
textures
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 + |