diff --git a/engine b/engine index ae3333e..beca879 160000 --- a/engine +++ b/engine @@ -1 +1 @@ -Subproject commit ae3333e22e36667a0c02817fafb16ab7b8d1341b +Subproject commit beca8798bf91edba954d31eb4e1a619ec2140c83 diff --git a/game/game.py b/game/game.py index 7b3b446..d319230 100644 --- a/game/game.py +++ b/game/game.py @@ -219,9 +219,8 @@ def loop(display): while not keyboard.quit: events.update() time.update() - begin_frame() + clear_buffer(True, True, True) scene.draw(time) - end_frame() swap_buffers(display) except KeyboardInterrupt: pass diff --git a/game/shader.py b/game/shader.py index 68374bb..9ab5c40 100644 --- a/game/shader.py +++ b/game/shader.py @@ -15,7 +15,7 @@ from pathlib import Path -from engine import load_shader, resolve_input, select_shader, unselect_shader, destroy_shader +from engine import create_shader, resolve_input, select_shader, unselect_shader, destroy_shader def _cleanup(line): return line.partition('//')[0].strip() @@ -70,7 +70,7 @@ class Shader: print("Loading fragment shader", frag_name) frag_lines = _load_source(path / (frag_name + '_opengles.frag')) assert frag_lines - self._shader = load_shader(list(map(_convert, vert_lines)), list(map(_convert, frag_lines))) + self._shader = create_shader(list(map(_convert, vert_lines)), list(map(_convert, frag_lines))) _parse(self, vert_lines, frag_lines) def __del__(self):