Bump engine submodule.

This commit is contained in:
Roz K 2023-01-01 08:11:38 +01:00
parent 3621a340f1
commit 9131523ae7
Signed by: roz
GPG Key ID: 51FBF4E483E1C822
3 changed files with 4 additions and 5 deletions

2
engine

@ -1 +1 @@
Subproject commit ae3333e22e36667a0c02817fafb16ab7b8d1341b
Subproject commit beca8798bf91edba954d31eb4e1a619ec2140c83

View File

@ -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

View File

@ -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):