Skip to content

Commit 3140813

Browse files
WIP
1 parent c23cfcc commit 3140813

18 files changed

Lines changed: 411 additions & 255 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# directories
33
.vs/
44
.idea/
5-
data/
65
out/
76

87
# python

data/pl_core.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "pl_core",
3+
"apis" : [
4+
{
5+
"name": "plCoreI",
6+
"functions" : [
7+
{
8+
"name": "setup",
9+
"about": "blah"
10+
},
11+
{
12+
"name": "begin_frame",
13+
"about": "blah"
14+
}
15+
]
16+
},
17+
{
18+
"name": "plIOI",
19+
"functions" : [
20+
{
21+
"name": "new_frame",
22+
"about": "blah"
23+
},
24+
{
25+
"name": "is_key_pressed",
26+
"about": "blah",
27+
"arguments" : [
28+
{ "name" : "key", "type" : "i"}
29+
]
30+
}
31+
]
32+
},
33+
{
34+
"name": "plWindowI",
35+
"functions" : [
36+
{
37+
"name": "create",
38+
"about": "blah"
39+
}
40+
]
41+
}
42+
]
43+
}

data/pl_draw_ext.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "pl_draw_ext",
3+
"apis" : [
4+
{
5+
"name": "plDrawI",
6+
"functions" : [
7+
{
8+
"name": "add_triangle_filled",
9+
"about": "blah",
10+
"arguments" : [
11+
{ "name" : "layer", "type" : "o"},
12+
{ "name" : "p0", "type" : "f"},
13+
{ "name" : "p1", "type" : "f"},
14+
{ "name" : "p2", "type" : "f"},
15+
{
16+
"name" : "uColor",
17+
"type" : "u",
18+
"argument type" : "PL_ARG_TYPE_KEYWORD",
19+
"default value": "4294967295"
20+
}
21+
]
22+
}
23+
]
24+
}
25+
]
26+
}

data/pl_starter_ext.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "pl_starter_ext",
3+
"apis" : [
4+
{
5+
"name": "plStarterI",
6+
"functions" : [
7+
{
8+
"name": "begin_frame",
9+
"about": "blah"
10+
},
11+
{
12+
"name": "initialize",
13+
"about": "blah",
14+
"arguments" : [
15+
{ "name" : "window", "type" : "o"}
16+
]
17+
},
18+
{
19+
"name": "finalize",
20+
"about": "blah"
21+
},
22+
{
23+
"name": "resize",
24+
"about": "blah"
25+
},
26+
{
27+
"name": "end_frame",
28+
"about": "blah"
29+
},
30+
{
31+
"name": "get_foreground_layer",
32+
"about": "blah"
33+
},
34+
{
35+
"name": "get_background_layer",
36+
"about": "blah"
37+
}
38+
]
39+
}
40+
]
41+
}

data/pl_ui_ext.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "pl_ui_ext",
3+
"apis" : [
4+
{
5+
"name": "plUiI",
6+
"functions" : [
7+
{
8+
"name": "end_window",
9+
"about": "blah"
10+
},
11+
{
12+
"name": "button",
13+
"about": "blah",
14+
"arguments" : [
15+
{ "name" : "name", "type" : "s"}
16+
]
17+
},
18+
{
19+
"name": "begin_window",
20+
"about": "blah",
21+
"arguments" : [
22+
{ "name" : "name", "type" : "s"}
23+
]
24+
}
25+
]
26+
}
27+
]
28+
}

pilotlight/_pilotlight.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,28 @@
66
##########################################################
77

88
def pl_core_plCoreI_setup(**kwargs) -> None:
9-
"""Undocumented
9+
"""
1010
1111
Return Type: None """
1212

1313
return internal.pl_core_plCoreI_setup(**kwargs)
1414

15-
def pl_core_plCoreI_begin_frame(**kwargs) -> bool:
16-
"""Undocumented
15+
def pl_core_plCoreI_begin_frame(**kwargs) -> None:
16+
"""
1717
1818
Return Type: None """
1919

2020
return internal.pl_core_plCoreI_begin_frame(**kwargs)
2121

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-
2922
def pl_core_plIOI_new_frame(**kwargs) -> None:
30-
"""Undocumented
23+
"""
3124
3225
Return Type: None """
3326

3427
return internal.pl_core_plIOI_new_frame(**kwargs)
3528

36-
def pl_core_plIOI_is_key_pressed(key : int, **kwargs) -> bool:
37-
"""Undocumented
29+
def pl_core_plIOI_is_key_pressed(key : int, **kwargs) -> None:
30+
"""
3831
3932
Return Type: None
4033
@@ -47,15 +40,22 @@ def pl_core_plIOI_is_key_pressed(key : int, **kwargs) -> bool:
4740

4841
return internal.pl_core_plIOI_is_key_pressed(key, **kwargs)
4942

43+
def pl_core_plWindowI_create(**kwargs) -> None:
44+
"""
45+
46+
Return Type: None """
47+
48+
return internal.pl_core_plWindowI_create(**kwargs)
49+
5050
def pl_starter_ext_plStarterI_begin_frame(**kwargs) -> None:
51-
"""Undocumented
51+
"""
5252
5353
Return Type: None """
5454

5555
return internal.pl_starter_ext_plStarterI_begin_frame(**kwargs)
5656

5757
def pl_starter_ext_plStarterI_initialize(window : Any, **kwargs) -> None:
58-
"""Undocumented
58+
"""
5959
6060
Return Type: None
6161
@@ -69,42 +69,42 @@ def pl_starter_ext_plStarterI_initialize(window : Any, **kwargs) -> None:
6969
return internal.pl_starter_ext_plStarterI_initialize(window, **kwargs)
7070

7171
def pl_starter_ext_plStarterI_finalize(**kwargs) -> None:
72-
"""Undocumented
72+
"""
7373
7474
Return Type: None """
7575

7676
return internal.pl_starter_ext_plStarterI_finalize(**kwargs)
7777

7878
def pl_starter_ext_plStarterI_resize(**kwargs) -> None:
79-
"""Undocumented
79+
"""
8080
8181
Return Type: None """
8282

8383
return internal.pl_starter_ext_plStarterI_resize(**kwargs)
8484

8585
def pl_starter_ext_plStarterI_end_frame(**kwargs) -> None:
86-
"""Undocumented
86+
"""
8787
8888
Return Type: None """
8989

9090
return internal.pl_starter_ext_plStarterI_end_frame(**kwargs)
9191

9292
def pl_starter_ext_plStarterI_get_foreground_layer(**kwargs) -> None:
93-
"""Undocumented
93+
"""
9494
9595
Return Type: None """
9696

9797
return internal.pl_starter_ext_plStarterI_get_foreground_layer(**kwargs)
9898

9999
def pl_starter_ext_plStarterI_get_background_layer(**kwargs) -> None:
100-
"""Undocumented
100+
"""
101101
102102
Return Type: None """
103103

104104
return internal.pl_starter_ext_plStarterI_get_background_layer(**kwargs)
105105

106106
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
107+
"""
108108
109109
Return Type: None
110110
@@ -130,8 +130,15 @@ def pl_draw_ext_plDrawI_add_triangle_filled(layer : Any, p0 : Union[List[float],
130130

131131
return internal.pl_draw_ext_plDrawI_add_triangle_filled(layer, p0, p1, p2, uColor=uColor, **kwargs)
132132

133-
def pl_ui_ext_plUiI_begin_window(name : str, **kwargs) -> None:
134-
"""Undocumented
133+
def pl_ui_ext_plUiI_end_window(**kwargs) -> None:
134+
"""
135+
136+
Return Type: None """
137+
138+
return internal.pl_ui_ext_plUiI_end_window(**kwargs)
139+
140+
def pl_ui_ext_plUiI_button(name : str, **kwargs) -> None:
141+
"""
135142
136143
Return Type: None
137144
@@ -142,17 +149,10 @@ def pl_ui_ext_plUiI_begin_window(name : str, **kwargs) -> None:
142149
* name : str
143150
"""
144151

145-
return internal.pl_ui_ext_plUiI_begin_window(name, **kwargs)
146-
147-
def pl_ui_ext_plUiI_end_window(**kwargs) -> None:
148-
"""Undocumented
149-
150-
Return Type: None """
151-
152-
return internal.pl_ui_ext_plUiI_end_window(**kwargs)
152+
return internal.pl_ui_ext_plUiI_button(name, **kwargs)
153153

154-
def pl_ui_ext_plUiI_button(name : str, **kwargs) -> bool:
155-
"""Undocumented
154+
def pl_ui_ext_plUiI_begin_window(name : str, **kwargs) -> None:
155+
"""
156156
157157
Return Type: None
158158
@@ -163,5 +163,5 @@ def pl_ui_ext_plUiI_button(name : str, **kwargs) -> bool:
163163
* name : str
164164
"""
165165

166-
return internal.pl_ui_ext_plUiI_button(name, **kwargs)
166+
return internal.pl_ui_ext_plUiI_begin_window(name, **kwargs)
167167

pilotlight/pl.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ def run(app):
2828
class plCoreI:
2929

3030
def setup(**kwargs) -> None:
31-
"""Undocumented
31+
"""
3232
3333
Return Type: None
3434
"""
3535

3636
return internal.pl_core_plCoreI_setup(**kwargs)
3737

38-
def begin_frame(**kwargs) -> bool:
39-
"""Undocumented
38+
def begin_frame(**kwargs) -> None:
39+
"""
4040
4141
Return Type: None
4242
"""
@@ -46,15 +46,15 @@ def begin_frame(**kwargs) -> bool:
4646
class plIOI:
4747

4848
def new_frame(**kwargs) -> None:
49-
"""Undocumented
49+
"""
5050
5151
Return Type: None
5252
"""
5353

5454
return internal.pl_core_plIOI_new_frame(**kwargs)
5555

56-
def is_key_pressed(key : int, **kwargs) -> bool:
57-
"""Undocumented
56+
def is_key_pressed(key : int, **kwargs) -> None:
57+
"""
5858
5959
Return Type: None
6060
@@ -71,7 +71,7 @@ def is_key_pressed(key : int, **kwargs) -> bool:
7171
class plWindowI:
7272

7373
def create(**kwargs) -> None:
74-
"""Undocumented
74+
"""
7575
7676
Return Type: None
7777
"""

pilotlight/pl_draw_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class plDrawI:
99

1010
def 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:
11-
"""Undocumented
11+
"""
1212
1313
Return Type: None
1414

0 commit comments

Comments
 (0)