diff options
Diffstat (limited to 'txtgameengine/__main__.py')
-rw-r--r-- | txtgameengine/__main__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/txtgameengine/__main__.py b/txtgameengine/__main__.py index 9aeeec3..b66d9fe 100644 --- a/txtgameengine/__main__.py +++ b/txtgameengine/__main__.py @@ -1,9 +1,9 @@ import numpy as np -from PIL import Image from .scenes import SceneTxtGameApp, Scene from pathlib import Path from .shaders import TextureShader +from .twod.textures import Texture shader_path = Path(__file__).parent / 'builtin_shaders' @@ -47,7 +47,7 @@ class EvilTriangleScene(TriangleScene): class TextureScene(Scene): def on_enter(self): self.texture_shaders = TextureShader(self.app) - self.texture = self.app.render.setup_texture_from_pil(Image.open('test_image.png')) + self.texture = Texture(self.app, 'test_image.png') self.triangle = self.app.render.setup_buffer( np.array([ -1.0, 1.0, |