Skip to content

Commit c23cfcc

Browse files
WIP
1 parent ba72cde commit c23cfcc

23 files changed

Lines changed: 864 additions & 256 deletions

pilotlight/_pilotlight.py

Lines changed: 139 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,167 @@
11
from typing import List, Any, Callable, Union, Tuple
22
import pilotlight._pilotlight as internal
3+
34
##########################################################
45
# This file is generated automatically #
56
##########################################################
67

7-
def pilotlight_setup(**kwargs) -> None:
8-
"""Testing pilotlight_setup"""
8+
def pl_core_plCoreI_setup(**kwargs) -> None:
9+
"""Undocumented
10+
11+
Return Type: None """
12+
13+
return internal.pl_core_plCoreI_setup(**kwargs)
14+
15+
def pl_core_plCoreI_begin_frame(**kwargs) -> bool:
16+
"""Undocumented
17+
18+
Return Type: None """
19+
20+
return internal.pl_core_plCoreI_begin_frame(**kwargs)
21+
22+
def pl_core_plWindowI_create(**kwargs) -> None:
23+
"""Undocumented
24+
25+
Return Type: None """
26+
27+
return internal.pl_core_plWindowI_create(**kwargs)
28+
29+
def pl_core_plIOI_new_frame(**kwargs) -> None:
30+
"""Undocumented
31+
32+
Return Type: None """
33+
34+
return internal.pl_core_plIOI_new_frame(**kwargs)
35+
36+
def pl_core_plIOI_is_key_pressed(key : int, **kwargs) -> bool:
37+
"""Undocumented
38+
39+
Return Type: None
40+
41+
Required Arguments
42+
_______________
43+
44+
45+
* key : int
46+
"""
47+
48+
return internal.pl_core_plIOI_is_key_pressed(key, **kwargs)
49+
50+
def pl_starter_ext_plStarterI_begin_frame(**kwargs) -> None:
51+
"""Undocumented
52+
53+
Return Type: None """
54+
55+
return internal.pl_starter_ext_plStarterI_begin_frame(**kwargs)
56+
57+
def pl_starter_ext_plStarterI_initialize(window : Any, **kwargs) -> None:
58+
"""Undocumented
59+
60+
Return Type: None
61+
62+
Required Arguments
63+
_______________
64+
65+
66+
* window : Any
67+
"""
68+
69+
return internal.pl_starter_ext_plStarterI_initialize(window, **kwargs)
70+
71+
def pl_starter_ext_plStarterI_finalize(**kwargs) -> None:
72+
"""Undocumented
73+
74+
Return Type: None """
75+
76+
return internal.pl_starter_ext_plStarterI_finalize(**kwargs)
77+
78+
def pl_starter_ext_plStarterI_resize(**kwargs) -> None:
79+
"""Undocumented
80+
81+
Return Type: None """
82+
83+
return internal.pl_starter_ext_plStarterI_resize(**kwargs)
84+
85+
def pl_starter_ext_plStarterI_end_frame(**kwargs) -> None:
86+
"""Undocumented
87+
88+
Return Type: None """
89+
90+
return internal.pl_starter_ext_plStarterI_end_frame(**kwargs)
91+
92+
def pl_starter_ext_plStarterI_get_foreground_layer(**kwargs) -> None:
93+
"""Undocumented
94+
95+
Return Type: None """
96+
97+
return internal.pl_starter_ext_plStarterI_get_foreground_layer(**kwargs)
98+
99+
def pl_starter_ext_plStarterI_get_background_layer(**kwargs) -> None:
100+
"""Undocumented
101+
102+
Return Type: None """
103+
104+
return internal.pl_starter_ext_plStarterI_get_background_layer(**kwargs)
105+
106+
def pl_draw_ext_plDrawI_add_triangle_filled(layer : Any, p0 : Union[List[float], Tuple[float, ...]], p1 : Union[List[float], Tuple[float, ...]], p2 : Union[List[float], Tuple[float, ...]], *, uColor: int = 4294967295, **kwargs) -> None:
107+
"""Undocumented
108+
109+
Return Type: None
110+
111+
Required Arguments
112+
_______________
9113
10-
return internal.pilotlight_setup(**kwargs)
11114
12-
def pilotlight_begin_frame(**kwargs) -> bool:
13-
"""Testing pilotlight_begin_frame"""
115+
* layer : Any
116+
117+
* p0 : Union[List[float], Tuple[float, ...]]
118+
119+
* p1 : Union[List[float], Tuple[float, ...]]
120+
121+
* p2 : Union[List[float], Tuple[float, ...]]
122+
14123
15-
return internal.pilotlight_begin_frame(**kwargs)
124+
Keyword Arguments
125+
_______________
16126
17-
def pilotlight_window_create(**kwargs) -> None:
18-
"""Testing pilotlight_window_create"""
19127
20-
return internal.pilotlight_window_create(**kwargs)
128+
* uColor : int = 4294967295
129+
"""
21130

22-
def pilotlight_io_new_frame(**kwargs) -> None:
23-
"""Testing pilotlight_io_new_frame"""
131+
return internal.pl_draw_ext_plDrawI_add_triangle_filled(layer, p0, p1, p2, uColor=uColor, **kwargs)
24132

25-
return internal.pilotlight_io_new_frame(**kwargs)
133+
def pl_ui_ext_plUiI_begin_window(name : str, **kwargs) -> None:
134+
"""Undocumented
26135
27-
def pilotlight_io_is_key_pressed(key : int, **kwargs) -> bool:
28-
"""Testing Documentation"""
136+
Return Type: None
29137
30-
return internal.pilotlight_io_is_key_pressed(key, **kwargs)
138+
Required Arguments
139+
_______________
31140
32-
def pl_starter_ext_begin_frame(**kwargs) -> None:
33-
"""Testing starter_begin_frame"""
34141
35-
return internal.pl_starter_ext_begin_frame(**kwargs)
142+
* name : str
143+
"""
36144

37-
def pl_starter_ext_initialize(window : Any, **kwargs) -> None:
38-
"""Testing starter_initialize"""
145+
return internal.pl_ui_ext_plUiI_begin_window(name, **kwargs)
39146

40-
return internal.pl_starter_ext_initialize(window, **kwargs)
147+
def pl_ui_ext_plUiI_end_window(**kwargs) -> None:
148+
"""Undocumented
41149
42-
def pl_starter_ext_finalize(**kwargs) -> None:
43-
"""Testing starter_begin_frame"""
150+
Return Type: None """
44151

45-
return internal.pl_starter_ext_finalize(**kwargs)
152+
return internal.pl_ui_ext_plUiI_end_window(**kwargs)
46153

47-
def pl_starter_ext_resize(**kwargs) -> None:
48-
"""Testing starter_begin_frame"""
154+
def pl_ui_ext_plUiI_button(name : str, **kwargs) -> bool:
155+
"""Undocumented
49156
50-
return internal.pl_starter_ext_resize(**kwargs)
157+
Return Type: None
51158
52-
def pl_starter_ext_end_frame(**kwargs) -> None:
53-
"""Testing starter_begin_frame"""
159+
Required Arguments
160+
_______________
54161
55-
return internal.pl_starter_ext_end_frame(**kwargs)
56162
57-
def pl_draw_ext_test(**kwargs) -> None:
58-
"""Testing starter_begin_frame"""
163+
* name : str
164+
"""
59165

60-
return internal.pl_draw_ext_test(**kwargs)
166+
return internal.pl_ui_ext_plUiI_button(name, **kwargs)
61167

pilotlight/_pilotlight.pyi

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import pilotlight._pilotlight as internal_pilotlight
1+
import pilotlight._pilotlight as internal
22

33
def run(app):
44

5-
internal_pilotlight.pilotlight_setup()
5+
internal.pl_core_plCoreI_setup()
66

77
app.pl_app_load()
88

99
while True:
10-
if internal_pilotlight.pilotlight_begin_frame():
10+
if internal.pl_core_plCoreI_begin_frame():
1111
app.pl_app_update()
1212
else:
1313
app.pl_app_resize()

pilotlight/_pl_draw_ext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from typing import List, Any, Callable, Union, Tuple
2+
import pilotlight._pilotlight as internal

pilotlight/pl.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
import pilotlight._pilotlight as internal
2+
3+
def run(app):
4+
5+
internal.pl_core_plCoreI_setup()
6+
7+
app.pl_app_load()
8+
9+
while True:
10+
if internal.pl_core_plCoreI_begin_frame():
11+
app.pl_app_update()
12+
else:
13+
app.pl_app_resize()
14+
15+
app.pl_app_shutdown()
16+
17+
18+
##########################################################
19+
# This file is generated automatically #
20+
##########################################################
21+
22+
# PL_KEY CONSTANTS
23+
24+
PL_KEY_P=internal.PL_KEY_P
25+
26+
# END PL_KEY CONSTANTS
27+
28+
class plCoreI:
29+
30+
def setup(**kwargs) -> None:
31+
"""Undocumented
32+
33+
Return Type: None
34+
"""
35+
36+
return internal.pl_core_plCoreI_setup(**kwargs)
37+
38+
def begin_frame(**kwargs) -> bool:
39+
"""Undocumented
40+
41+
Return Type: None
42+
"""
43+
44+
return internal.pl_core_plCoreI_begin_frame(**kwargs)
45+
46+
class plIOI:
47+
48+
def new_frame(**kwargs) -> None:
49+
"""Undocumented
50+
51+
Return Type: None
52+
"""
53+
54+
return internal.pl_core_plIOI_new_frame(**kwargs)
55+
56+
def is_key_pressed(key : int, **kwargs) -> bool:
57+
"""Undocumented
58+
59+
Return Type: None
60+
61+
Required Arguments
62+
_______________
63+
64+
65+
* key : int
66+
67+
"""
68+
69+
return internal.pl_core_plIOI_is_key_pressed(key, **kwargs)
70+
71+
class plWindowI:
72+
73+
def create(**kwargs) -> None:
74+
"""Undocumented
75+
76+
Return Type: None
77+
"""
78+
79+
return internal.pl_core_plWindowI_create(**kwargs)
80+

pilotlight/plDrawI.py

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

pilotlight/plIOI.py

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

pilotlight/plStarterI.py

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

pilotlight/plWindowI.py

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

0 commit comments

Comments
 (0)