Skip to content

Commit ba72cde

Browse files
committed
WIP
1 parent 4ad2714 commit ba72cde

21 files changed

Lines changed: 387 additions & 261 deletions

.vscode/c_cpp_properties.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"${workspaceFolder}/../pilotlight/libs",
99
"${workspaceFolder}/../pilotlight/extensions",
1010
"${workspaceFolder}/../pilotlight/src",
11+
"${workspaceFolder}/../pilotlight/shaders",
1112
"${workspaceFolder}/../pilotlight/dependencies/stb",
13+
"${workspaceFolder}/../pilotlight/dependencies/cgltf",
1214
"${workspaceFolder}/../pilotlight/dependencies/glfw/include",
1315
"${workspaceFolder}/dependencies/cpython",
1416
"${workspaceFolder}/dependencies/cpython/Include",

pilotlight/_pilotlight.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,33 @@ def pilotlight_io_is_key_pressed(key : int, **kwargs) -> bool:
2929

3030
return internal.pilotlight_io_is_key_pressed(key, **kwargs)
3131

32+
def pl_starter_ext_begin_frame(**kwargs) -> None:
33+
"""Testing starter_begin_frame"""
34+
35+
return internal.pl_starter_ext_begin_frame(**kwargs)
36+
37+
def pl_starter_ext_initialize(window : Any, **kwargs) -> None:
38+
"""Testing starter_initialize"""
39+
40+
return internal.pl_starter_ext_initialize(window, **kwargs)
41+
42+
def pl_starter_ext_finalize(**kwargs) -> None:
43+
"""Testing starter_begin_frame"""
44+
45+
return internal.pl_starter_ext_finalize(**kwargs)
46+
47+
def pl_starter_ext_resize(**kwargs) -> None:
48+
"""Testing starter_begin_frame"""
49+
50+
return internal.pl_starter_ext_resize(**kwargs)
51+
52+
def pl_starter_ext_end_frame(**kwargs) -> None:
53+
"""Testing starter_begin_frame"""
54+
55+
return internal.pl_starter_ext_end_frame(**kwargs)
56+
57+
def pl_draw_ext_test(**kwargs) -> None:
58+
"""Testing starter_begin_frame"""
59+
60+
return internal.pl_draw_ext_test(**kwargs)
61+

pilotlight/_pilotlight.pyi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,27 @@ def pilotlight_io_is_key_pressed(pilotlight_io_is_key_pressed : int) -> bool:
2424
"""Testing Documentation"""
2525
...
2626

27+
def pl_starter_ext_begin_frame() -> None:
28+
"""Testing starter_begin_frame"""
29+
...
30+
31+
def pl_starter_ext_initialize(pl_starter_ext_initialize : Any) -> None:
32+
"""Testing starter_initialize"""
33+
...
34+
35+
def pl_starter_ext_finalize() -> None:
36+
"""Testing starter_begin_frame"""
37+
...
38+
39+
def pl_starter_ext_resize() -> None:
40+
"""Testing starter_begin_frame"""
41+
...
42+
43+
def pl_starter_ext_end_frame() -> None:
44+
"""Testing starter_begin_frame"""
45+
...
46+
47+
def pl_draw_ext_test() -> None:
48+
"""Testing starter_begin_frame"""
49+
...
50+

pilotlight/_starter.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

pilotlight/_starter.pyi

Lines changed: 0 additions & 10 deletions
This file was deleted.

pilotlight/pilotlight.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
import pilotlight._pilotlight as internal_pilotlight
22

3-
class plIOI:
4-
5-
def new_frame():
6-
return internal_pilotlight.pilotlight_io_new_frame()
7-
8-
def is_key_pressed(key):
9-
return internal_pilotlight.pilotlight_io_is_key_pressed(key)
10-
11-
12-
class plWindowI:
13-
14-
def create():
15-
return internal_pilotlight.pilotlight_window_create()
16-
17-
183
def run(app):
194

205
internal_pilotlight.pilotlight_setup()

pilotlight/plDrawI.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pilotlight._pilotlight as internal_pilotlight
2+
3+
4+
def test():
5+
return internal_pilotlight.pl_draw_ext_test()

pilotlight/plIOI.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pilotlight._pilotlight as internal_pilotlight
2+
3+
4+
def new_frame():
5+
return internal_pilotlight.pilotlight_io_new_frame()
6+
7+
def is_key_pressed(key):
8+
return internal_pilotlight.pilotlight_io_is_key_pressed(key)

pilotlight/plStarterI.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pilotlight._pilotlight as internal_pilotlight
2+
3+
4+
def initialize(window):
5+
return internal_pilotlight.pl_starter_ext_initialize(window)
6+
7+
def finalize():
8+
return internal_pilotlight.pl_starter_ext_finalize()
9+
10+
def resize():
11+
return internal_pilotlight.pl_starter_ext_resize()
12+
13+
def begin_frame():
14+
return internal_pilotlight.pl_starter_ext_begin_frame()
15+
16+
def end_frame():
17+
return internal_pilotlight.pl_starter_ext_end_frame()

pilotlight/plWindowI.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pilotlight._pilotlight as internal_pilotlight
2+
3+
4+
def create():
5+
return internal_pilotlight.pilotlight_window_create()

0 commit comments

Comments
 (0)