raylib 5.0.0.4__cp311-cp311-manylinux2014_x86_64.whl → 5.5.0.0.dev2__cp311-cp311-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyray/__init__.pyi +269 -74
- raylib/__init__.py +2 -8
- raylib/__init__.pyi +266 -67
- raylib/_raylib_cffi.cpython-311-x86_64-linux-gnu.so +0 -0
- raylib/build.py +43 -13
- raylib/defines.py +27 -5
- raylib/enums.py +16 -10
- raylib/glfw3.h.modified +226 -110
- raylib/raygui.h.modified +53 -31
- raylib/raylib.h.modified +84 -54
- raylib/raymath.h.modified +36 -8
- raylib/rlgl.h.modified +49 -32
- raylib/version.py +1 -1
- {raylib-5.0.0.4.dist-info → raylib-5.5.0.0.dev2.dist-info}/METADATA +61 -24
- raylib-5.5.0.0.dev2.dist-info/RECORD +21 -0
- raylib-5.0.0.4.dist-info/RECORD +0 -21
- {raylib-5.0.0.4.dist-info → raylib-5.5.0.0.dev2.dist-info}/LICENSE +0 -0
- {raylib-5.0.0.4.dist-info → raylib-5.5.0.0.dev2.dist-info}/WHEEL +0 -0
- {raylib-5.0.0.4.dist-info → raylib-5.5.0.0.dev2.dist-info}/top_level.txt +0 -0
pyray/__init__.pyi
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
from typing import Any
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
def pointer(struct):
|
|
5
|
-
...
|
|
6
4
|
|
|
7
5
|
def attach_audio_mixed_processor(processor: Any,) -> None:
|
|
8
|
-
"""Attach audio stream processor to the entire audio pipeline, receives the samples as
|
|
6
|
+
"""Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'"""
|
|
9
7
|
...
|
|
10
8
|
def attach_audio_stream_processor(stream: AudioStream,processor: Any,) -> None:
|
|
11
|
-
"""Attach audio stream processor to stream, receives the samples as
|
|
9
|
+
"""Attach audio stream processor to stream, receives the samples as 'float'"""
|
|
12
10
|
...
|
|
13
11
|
def begin_blend_mode(mode: int,) -> None:
|
|
14
12
|
"""Begin blending mode (alpha, additive, multiplied, subtract, custom)"""
|
|
@@ -43,6 +41,9 @@ def check_collision_box_sphere(box: BoundingBox,center: Vector3,radius: float,)
|
|
|
43
41
|
def check_collision_boxes(box1: BoundingBox,box2: BoundingBox,) -> bool:
|
|
44
42
|
"""Check collision between two bounding boxes"""
|
|
45
43
|
...
|
|
44
|
+
def check_collision_circle_line(center: Vector2,radius: float,p1: Vector2,p2: Vector2,) -> bool:
|
|
45
|
+
"""Check if circle collides with a line created betweeen two points [p1] and [p2]"""
|
|
46
|
+
...
|
|
46
47
|
def check_collision_circle_rec(center: Vector2,radius: float,rec: Rectangle,) -> bool:
|
|
47
48
|
"""Check collision between circle and rectangle"""
|
|
48
49
|
...
|
|
@@ -112,6 +113,12 @@ def color_from_hsv(hue: float,saturation: float,value: float,) -> Color:
|
|
|
112
113
|
def color_from_normalized(normalized: Vector4,) -> Color:
|
|
113
114
|
"""Get Color from normalized values [0..1]"""
|
|
114
115
|
...
|
|
116
|
+
def color_is_equal(col1: Color,col2: Color,) -> bool:
|
|
117
|
+
"""Check if two colors are equal"""
|
|
118
|
+
...
|
|
119
|
+
def color_lerp(color1: Color,color2: Color,factor: float,) -> Color:
|
|
120
|
+
"""Get color lerp interpolation between two colors, factor [0.0f..1.0f]"""
|
|
121
|
+
...
|
|
115
122
|
def color_normalize(color: Color,) -> Vector4:
|
|
116
123
|
"""Get Color normalized as float [0..1]"""
|
|
117
124
|
...
|
|
@@ -122,7 +129,7 @@ def color_to_hsv(color: Color,) -> Vector3:
|
|
|
122
129
|
"""Get HSV values for a Color, hue [0..360], saturation/value [0..1]"""
|
|
123
130
|
...
|
|
124
131
|
def color_to_int(color: Color,) -> int:
|
|
125
|
-
"""Get hexadecimal value for a Color"""
|
|
132
|
+
"""Get hexadecimal value for a Color (0xRRGGBBAA)"""
|
|
126
133
|
...
|
|
127
134
|
def compress_data(data: str,dataSize: int,compDataSize: Any,) -> str:
|
|
128
135
|
"""Compress data (DEFLATE algorithm), memory must be MemFree()"""
|
|
@@ -160,7 +167,7 @@ def disable_cursor() -> None:
|
|
|
160
167
|
def disable_event_waiting() -> None:
|
|
161
168
|
"""Disable waiting for events on EndDrawing(), automatic events polling"""
|
|
162
169
|
...
|
|
163
|
-
def draw_billboard(camera: Camera3D,texture: Texture,position: Vector3,
|
|
170
|
+
def draw_billboard(camera: Camera3D,texture: Texture,position: Vector3,scale: float,tint: Color,) -> None:
|
|
164
171
|
"""Draw a billboard texture"""
|
|
165
172
|
...
|
|
166
173
|
def draw_billboard_pro(camera: Camera3D,texture: Texture,source: Rectangle,position: Vector3,up: Vector3,size: Vector2,origin: Vector2,rotation: float,tint: Color,) -> None:
|
|
@@ -184,7 +191,7 @@ def draw_circle(centerX: int,centerY: int,radius: float,color: Color,) -> None:
|
|
|
184
191
|
def draw_circle_3d(center: Vector3,radius: float,rotationAxis: Vector3,rotationAngle: float,color: Color,) -> None:
|
|
185
192
|
"""Draw a circle in 3D world space"""
|
|
186
193
|
...
|
|
187
|
-
def draw_circle_gradient(centerX: int,centerY: int,radius: float,
|
|
194
|
+
def draw_circle_gradient(centerX: int,centerY: int,radius: float,inner: Color,outer: Color,) -> None:
|
|
188
195
|
"""Draw a gradient-filled circle"""
|
|
189
196
|
...
|
|
190
197
|
def draw_circle_lines(centerX: int,centerY: int,radius: float,color: Color,) -> None:
|
|
@@ -268,6 +275,12 @@ def draw_model(model: Model,position: Vector3,scale: float,tint: Color,) -> None
|
|
|
268
275
|
def draw_model_ex(model: Model,position: Vector3,rotationAxis: Vector3,rotationAngle: float,scale: Vector3,tint: Color,) -> None:
|
|
269
276
|
"""Draw a model with extended parameters"""
|
|
270
277
|
...
|
|
278
|
+
def draw_model_points(model: Model,position: Vector3,scale: float,tint: Color,) -> None:
|
|
279
|
+
"""Draw a model as points"""
|
|
280
|
+
...
|
|
281
|
+
def draw_model_points_ex(model: Model,position: Vector3,rotationAxis: Vector3,rotationAngle: float,scale: Vector3,tint: Color,) -> None:
|
|
282
|
+
"""Draw a model as points with extended parameters"""
|
|
283
|
+
...
|
|
271
284
|
def draw_model_wires(model: Model,position: Vector3,scale: float,tint: Color,) -> None:
|
|
272
285
|
"""Draw a model wires (with texture if set)"""
|
|
273
286
|
...
|
|
@@ -275,10 +288,10 @@ def draw_model_wires_ex(model: Model,position: Vector3,rotationAxis: Vector3,rot
|
|
|
275
288
|
"""Draw a model wires (with texture if set) with extended parameters"""
|
|
276
289
|
...
|
|
277
290
|
def draw_pixel(posX: int,posY: int,color: Color,) -> None:
|
|
278
|
-
"""Draw a pixel"""
|
|
291
|
+
"""Draw a pixel using geometry [Can be slow, use with care]"""
|
|
279
292
|
...
|
|
280
293
|
def draw_pixel_v(position: Vector2,color: Color,) -> None:
|
|
281
|
-
"""Draw a pixel (Vector version)"""
|
|
294
|
+
"""Draw a pixel using geometry (Vector version) [Can be slow, use with care]"""
|
|
282
295
|
...
|
|
283
296
|
def draw_plane(centerPos: Vector3,size: Vector2,color: Color,) -> None:
|
|
284
297
|
"""Draw a plane XZ"""
|
|
@@ -301,13 +314,13 @@ def draw_ray(ray: Ray,color: Color,) -> None:
|
|
|
301
314
|
def draw_rectangle(posX: int,posY: int,width: int,height: int,color: Color,) -> None:
|
|
302
315
|
"""Draw a color-filled rectangle"""
|
|
303
316
|
...
|
|
304
|
-
def draw_rectangle_gradient_ex(rec: Rectangle,
|
|
317
|
+
def draw_rectangle_gradient_ex(rec: Rectangle,topLeft: Color,bottomLeft: Color,topRight: Color,bottomRight: Color,) -> None:
|
|
305
318
|
"""Draw a gradient-filled rectangle with custom vertex colors"""
|
|
306
319
|
...
|
|
307
|
-
def draw_rectangle_gradient_h(posX: int,posY: int,width: int,height: int,
|
|
320
|
+
def draw_rectangle_gradient_h(posX: int,posY: int,width: int,height: int,left: Color,right: Color,) -> None:
|
|
308
321
|
"""Draw a horizontal-gradient-filled rectangle"""
|
|
309
322
|
...
|
|
310
|
-
def draw_rectangle_gradient_v(posX: int,posY: int,width: int,height: int,
|
|
323
|
+
def draw_rectangle_gradient_v(posX: int,posY: int,width: int,height: int,top: Color,bottom: Color,) -> None:
|
|
311
324
|
"""Draw a vertical-gradient-filled rectangle"""
|
|
312
325
|
...
|
|
313
326
|
def draw_rectangle_lines(posX: int,posY: int,width: int,height: int,color: Color,) -> None:
|
|
@@ -325,7 +338,10 @@ def draw_rectangle_rec(rec: Rectangle,color: Color,) -> None:
|
|
|
325
338
|
def draw_rectangle_rounded(rec: Rectangle,roundness: float,segments: int,color: Color,) -> None:
|
|
326
339
|
"""Draw rectangle with rounded edges"""
|
|
327
340
|
...
|
|
328
|
-
def draw_rectangle_rounded_lines(rec: Rectangle,roundness: float,segments: int,
|
|
341
|
+
def draw_rectangle_rounded_lines(rec: Rectangle,roundness: float,segments: int,color: Color,) -> None:
|
|
342
|
+
"""Draw rectangle lines with rounded edges"""
|
|
343
|
+
...
|
|
344
|
+
def draw_rectangle_rounded_lines_ex(rec: Rectangle,roundness: float,segments: int,lineThick: float,color: Color,) -> None:
|
|
329
345
|
"""Draw rectangle with rounded edges outline"""
|
|
330
346
|
...
|
|
331
347
|
def draw_rectangle_v(position: Vector2,size: Vector2,color: Color,) -> None:
|
|
@@ -481,6 +497,9 @@ def export_image_to_memory(image: Image,fileType: str,fileSize: Any,) -> str:
|
|
|
481
497
|
def export_mesh(mesh: Mesh,fileName: str,) -> bool:
|
|
482
498
|
"""Export mesh data to file, returns true on success"""
|
|
483
499
|
...
|
|
500
|
+
def export_mesh_as_code(mesh: Mesh,fileName: str,) -> bool:
|
|
501
|
+
"""Export mesh as code file (.h) defining multiple arrays of vertex attributes"""
|
|
502
|
+
...
|
|
484
503
|
def export_wave(wave: Wave,fileName: str,) -> bool:
|
|
485
504
|
"""Export wave data to file, returns true on success"""
|
|
486
505
|
...
|
|
@@ -715,9 +734,6 @@ def get_mouse_delta() -> Vector2:
|
|
|
715
734
|
def get_mouse_position() -> Vector2:
|
|
716
735
|
"""Get mouse position XY"""
|
|
717
736
|
...
|
|
718
|
-
def get_mouse_ray(mousePosition: Vector2,camera: Camera3D,) -> Ray:
|
|
719
|
-
"""Get a ray trace from mouse position"""
|
|
720
|
-
...
|
|
721
737
|
def get_mouse_wheel_move() -> float:
|
|
722
738
|
"""Get mouse wheel movement for X or Y, whichever is larger"""
|
|
723
739
|
...
|
|
@@ -790,6 +806,12 @@ def get_screen_height() -> int:
|
|
|
790
806
|
def get_screen_to_world_2d(position: Vector2,camera: Camera2D,) -> Vector2:
|
|
791
807
|
"""Get the world space position for a 2d camera screen space position"""
|
|
792
808
|
...
|
|
809
|
+
def get_screen_to_world_ray(position: Vector2,camera: Camera3D,) -> Ray:
|
|
810
|
+
"""Get a ray trace from screen position (i.e mouse)"""
|
|
811
|
+
...
|
|
812
|
+
def get_screen_to_world_ray_ex(position: Vector2,camera: Camera3D,width: int,height: int,) -> Ray:
|
|
813
|
+
"""Get a ray trace from screen position (i.e mouse) in a viewport"""
|
|
814
|
+
...
|
|
793
815
|
def get_screen_width() -> int:
|
|
794
816
|
"""Get current screen width"""
|
|
795
817
|
...
|
|
@@ -799,6 +821,12 @@ def get_shader_location(shader: Shader,uniformName: str,) -> int:
|
|
|
799
821
|
def get_shader_location_attrib(shader: Shader,attribName: str,) -> int:
|
|
800
822
|
"""Get shader attribute location"""
|
|
801
823
|
...
|
|
824
|
+
def get_shapes_texture() -> Texture:
|
|
825
|
+
"""Get texture that is used for shapes drawing"""
|
|
826
|
+
...
|
|
827
|
+
def get_shapes_texture_rectangle() -> Rectangle:
|
|
828
|
+
"""Get texture source rectangle that is used for shapes drawing"""
|
|
829
|
+
...
|
|
802
830
|
def get_spline_point_basis(p1: Vector2,p2: Vector2,p3: Vector2,p4: Vector2,t: float,) -> Vector2:
|
|
803
831
|
"""Get (evaluate) spline point: B-Spline"""
|
|
804
832
|
...
|
|
@@ -869,7 +897,7 @@ def gui_color_panel(bounds: Rectangle,text: str,color: Any,) -> int:
|
|
|
869
897
|
"""Color Panel control"""
|
|
870
898
|
...
|
|
871
899
|
def gui_color_panel_hsv(bounds: Rectangle,text: str,colorHsv: Any,) -> int:
|
|
872
|
-
"""Color Panel control that
|
|
900
|
+
"""Color Panel control that updates Hue-Saturation-Value color value, used by GuiColorPickerHSV()"""
|
|
873
901
|
...
|
|
874
902
|
def gui_color_picker(bounds: Rectangle,text: str,color: Any,) -> int:
|
|
875
903
|
"""Color Picker control (multiple color controls)"""
|
|
@@ -878,7 +906,7 @@ def gui_color_picker_hsv(bounds: Rectangle,text: str,colorHsv: Any,) -> int:
|
|
|
878
906
|
"""Color Picker control that avoids conversion to RGB on each call (multiple color controls)"""
|
|
879
907
|
...
|
|
880
908
|
def gui_combo_box(bounds: Rectangle,text: str,active: Any,) -> int:
|
|
881
|
-
"""Combo Box control
|
|
909
|
+
"""Combo Box control"""
|
|
882
910
|
...
|
|
883
911
|
def gui_disable() -> None:
|
|
884
912
|
"""Disable gui controls (global state)"""
|
|
@@ -890,7 +918,7 @@ def gui_draw_icon(iconId: int,posX: int,posY: int,pixelSize: int,color: Color,)
|
|
|
890
918
|
"""Draw icon using pixel size at specified position"""
|
|
891
919
|
...
|
|
892
920
|
def gui_dropdown_box(bounds: Rectangle,text: str,active: Any,editMode: bool,) -> int:
|
|
893
|
-
"""Dropdown Box control
|
|
921
|
+
"""Dropdown Box control"""
|
|
894
922
|
...
|
|
895
923
|
def gui_dummy_rec(bounds: Rectangle,text: str,) -> int:
|
|
896
924
|
"""Dummy control for placeholders"""
|
|
@@ -914,7 +942,7 @@ def gui_get_style(control: int,property: int,) -> int:
|
|
|
914
942
|
"""Get one style property"""
|
|
915
943
|
...
|
|
916
944
|
def gui_grid(bounds: Rectangle,text: str,spacing: float,subdivs: int,mouseCell: Any,) -> int:
|
|
917
|
-
"""Grid control
|
|
945
|
+
"""Grid control"""
|
|
918
946
|
...
|
|
919
947
|
def gui_group_box(bounds: Rectangle,text: str,) -> int:
|
|
920
948
|
"""Group Box control with text name"""
|
|
@@ -926,16 +954,16 @@ def gui_is_locked() -> bool:
|
|
|
926
954
|
"""Check if gui is locked (global state)"""
|
|
927
955
|
...
|
|
928
956
|
def gui_label(bounds: Rectangle,text: str,) -> int:
|
|
929
|
-
"""Label control
|
|
957
|
+
"""Label control"""
|
|
930
958
|
...
|
|
931
959
|
def gui_label_button(bounds: Rectangle,text: str,) -> int:
|
|
932
|
-
"""Label button control,
|
|
960
|
+
"""Label button control, returns true when clicked"""
|
|
933
961
|
...
|
|
934
962
|
def gui_line(bounds: Rectangle,text: str,) -> int:
|
|
935
963
|
"""Line separator control, could contain text"""
|
|
936
964
|
...
|
|
937
965
|
def gui_list_view(bounds: Rectangle,text: str,scrollIndex: Any,active: Any,) -> int:
|
|
938
|
-
"""List View control
|
|
966
|
+
"""List View control"""
|
|
939
967
|
...
|
|
940
968
|
def gui_list_view_ex(bounds: Rectangle,text: list[str],count: int,scrollIndex: Any,active: Any,focus: Any,) -> int:
|
|
941
969
|
"""List View with extended parameters"""
|
|
@@ -959,7 +987,7 @@ def gui_panel(bounds: Rectangle,text: str,) -> int:
|
|
|
959
987
|
"""Panel control, useful to group controls"""
|
|
960
988
|
...
|
|
961
989
|
def gui_progress_bar(bounds: Rectangle,textLeft: str,textRight: str,value: Any,minValue: float,maxValue: float,) -> int:
|
|
962
|
-
"""Progress Bar control
|
|
990
|
+
"""Progress Bar control"""
|
|
963
991
|
...
|
|
964
992
|
def gui_scroll_panel(bounds: Rectangle,text: str,content: Rectangle,scroll: Any,view: Any,) -> int:
|
|
965
993
|
"""Scroll Panel control"""
|
|
@@ -983,13 +1011,13 @@ def gui_set_tooltip(tooltip: str,) -> None:
|
|
|
983
1011
|
"""Set tooltip string"""
|
|
984
1012
|
...
|
|
985
1013
|
def gui_slider(bounds: Rectangle,textLeft: str,textRight: str,value: Any,minValue: float,maxValue: float,) -> int:
|
|
986
|
-
"""Slider control
|
|
1014
|
+
"""Slider control"""
|
|
987
1015
|
...
|
|
988
1016
|
def gui_slider_bar(bounds: Rectangle,textLeft: str,textRight: str,value: Any,minValue: float,maxValue: float,) -> int:
|
|
989
|
-
"""Slider Bar control
|
|
1017
|
+
"""Slider Bar control"""
|
|
990
1018
|
...
|
|
991
1019
|
def gui_spinner(bounds: Rectangle,text: str,value: Any,minValue: int,maxValue: int,editMode: bool,) -> int:
|
|
992
|
-
"""Spinner control
|
|
1020
|
+
"""Spinner control"""
|
|
993
1021
|
...
|
|
994
1022
|
def gui_status_bar(bounds: Rectangle,text: str,) -> int:
|
|
995
1023
|
"""Status Bar control, shows info text"""
|
|
@@ -1004,13 +1032,13 @@ def gui_text_input_box(bounds: Rectangle,title: str,message: str,buttons: str,te
|
|
|
1004
1032
|
"""Text Input Box control, ask for text, supports secret"""
|
|
1005
1033
|
...
|
|
1006
1034
|
def gui_toggle(bounds: Rectangle,text: str,active: Any,) -> int:
|
|
1007
|
-
"""Toggle Button control
|
|
1035
|
+
"""Toggle Button control"""
|
|
1008
1036
|
...
|
|
1009
1037
|
def gui_toggle_group(bounds: Rectangle,text: str,active: Any,) -> int:
|
|
1010
|
-
"""Toggle Group control
|
|
1038
|
+
"""Toggle Group control"""
|
|
1011
1039
|
...
|
|
1012
1040
|
def gui_toggle_slider(bounds: Rectangle,text: str,active: Any,) -> int:
|
|
1013
|
-
"""Toggle Slider control
|
|
1041
|
+
"""Toggle Slider control"""
|
|
1014
1042
|
...
|
|
1015
1043
|
def gui_unlock() -> None:
|
|
1016
1044
|
"""Unlock gui controls (global state)"""
|
|
@@ -1018,6 +1046,9 @@ def gui_unlock() -> None:
|
|
|
1018
1046
|
def gui_value_box(bounds: Rectangle,text: str,value: Any,minValue: int,maxValue: int,editMode: bool,) -> int:
|
|
1019
1047
|
"""Value Box control, updates input text with numbers"""
|
|
1020
1048
|
...
|
|
1049
|
+
def gui_value_box_float(bounds: Rectangle,text: str,textValue: str,value: Any,editMode: bool,) -> int:
|
|
1050
|
+
"""Value box control for float values"""
|
|
1051
|
+
...
|
|
1021
1052
|
def gui_window_box(bounds: Rectangle,title: str,) -> int:
|
|
1022
1053
|
"""Window Box control, shows a window that can be closed"""
|
|
1023
1054
|
...
|
|
@@ -1087,6 +1118,9 @@ def image_draw_circle_v(dst: Any,center: Vector2,radius: int,color: Color,) -> N
|
|
|
1087
1118
|
def image_draw_line(dst: Any,startPosX: int,startPosY: int,endPosX: int,endPosY: int,color: Color,) -> None:
|
|
1088
1119
|
"""Draw line within an image"""
|
|
1089
1120
|
...
|
|
1121
|
+
def image_draw_line_ex(dst: Any,start: Vector2,end: Vector2,thick: int,color: Color,) -> None:
|
|
1122
|
+
"""Draw a line defining thickness within an image"""
|
|
1123
|
+
...
|
|
1090
1124
|
def image_draw_line_v(dst: Any,start: Vector2,end: Vector2,color: Color,) -> None:
|
|
1091
1125
|
"""Draw line within an image (Vector version)"""
|
|
1092
1126
|
...
|
|
@@ -1114,6 +1148,21 @@ def image_draw_text(dst: Any,text: str,posX: int,posY: int,fontSize: int,color:
|
|
|
1114
1148
|
def image_draw_text_ex(dst: Any,font: Font,text: str,position: Vector2,fontSize: float,spacing: float,tint: Color,) -> None:
|
|
1115
1149
|
"""Draw text (custom sprite font) within an image (destination)"""
|
|
1116
1150
|
...
|
|
1151
|
+
def image_draw_triangle(dst: Any,v1: Vector2,v2: Vector2,v3: Vector2,color: Color,) -> None:
|
|
1152
|
+
"""Draw triangle within an image"""
|
|
1153
|
+
...
|
|
1154
|
+
def image_draw_triangle_ex(dst: Any,v1: Vector2,v2: Vector2,v3: Vector2,c1: Color,c2: Color,c3: Color,) -> None:
|
|
1155
|
+
"""Draw triangle with interpolated colors within an image"""
|
|
1156
|
+
...
|
|
1157
|
+
def image_draw_triangle_fan(dst: Any,points: Any,pointCount: int,color: Color,) -> None:
|
|
1158
|
+
"""Draw a triangle fan defined by points within an image (first vertex is the center)"""
|
|
1159
|
+
...
|
|
1160
|
+
def image_draw_triangle_lines(dst: Any,v1: Vector2,v2: Vector2,v3: Vector2,color: Color,) -> None:
|
|
1161
|
+
"""Draw triangle outline within an image"""
|
|
1162
|
+
...
|
|
1163
|
+
def image_draw_triangle_strip(dst: Any,points: Any,pointCount: int,color: Color,) -> None:
|
|
1164
|
+
"""Draw a triangle strip defined by points within an image"""
|
|
1165
|
+
...
|
|
1117
1166
|
def image_flip_horizontal(image: Any,) -> None:
|
|
1118
1167
|
"""Flip image horizontally"""
|
|
1119
1168
|
...
|
|
@@ -1123,9 +1172,15 @@ def image_flip_vertical(image: Any,) -> None:
|
|
|
1123
1172
|
def image_format(image: Any,newFormat: int,) -> None:
|
|
1124
1173
|
"""Convert image data to desired format"""
|
|
1125
1174
|
...
|
|
1175
|
+
def image_from_channel(image: Image,selectedChannel: int,) -> Image:
|
|
1176
|
+
"""Create an image from a selected channel of another image (GRAYSCALE)"""
|
|
1177
|
+
...
|
|
1126
1178
|
def image_from_image(image: Image,rec: Rectangle,) -> Image:
|
|
1127
1179
|
"""Create an image from another image piece"""
|
|
1128
1180
|
...
|
|
1181
|
+
def image_kernel_convolution(image: Any,kernel: Any,kernelSize: int,) -> None:
|
|
1182
|
+
"""Apply custom square convolution kernel to image"""
|
|
1183
|
+
...
|
|
1129
1184
|
def image_mipmaps(image: Any,) -> None:
|
|
1130
1185
|
"""Compute all mipmap levels for a provided image"""
|
|
1131
1186
|
...
|
|
@@ -1189,6 +1244,9 @@ def is_file_dropped() -> bool:
|
|
|
1189
1244
|
def is_file_extension(fileName: str,ext: str,) -> bool:
|
|
1190
1245
|
"""Check file extension (including point: .png, .wav)"""
|
|
1191
1246
|
...
|
|
1247
|
+
def is_file_name_valid(fileName: str,) -> bool:
|
|
1248
|
+
"""Check if fileName is valid for the platform/OS"""
|
|
1249
|
+
...
|
|
1192
1250
|
def is_font_ready(font: Font,) -> bool:
|
|
1193
1251
|
"""Check if a font is ready"""
|
|
1194
1252
|
...
|
|
@@ -1316,7 +1374,7 @@ def load_directory_files(dirPath: str,) -> FilePathList:
|
|
|
1316
1374
|
"""Load directory filepaths"""
|
|
1317
1375
|
...
|
|
1318
1376
|
def load_directory_files_ex(basePath: str,filter: str,scanSubdirs: bool,) -> FilePathList:
|
|
1319
|
-
"""Load directory filepaths with extension filtering and recursive directory scan"""
|
|
1377
|
+
"""Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result"""
|
|
1320
1378
|
...
|
|
1321
1379
|
def load_dropped_files() -> FilePathList:
|
|
1322
1380
|
"""Load dropped filepaths"""
|
|
@@ -1334,7 +1392,7 @@ def load_font_data(fileData: str,dataSize: int,fontSize: int,codepoints: Any,cod
|
|
|
1334
1392
|
"""Load font data for further use"""
|
|
1335
1393
|
...
|
|
1336
1394
|
def load_font_ex(fileName: str,fontSize: int,codepoints: Any,codepointCount: int,) -> Font:
|
|
1337
|
-
"""Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character
|
|
1395
|
+
"""Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height"""
|
|
1338
1396
|
...
|
|
1339
1397
|
def load_font_from_image(image: Image,key: Color,firstChar: int,) -> Font:
|
|
1340
1398
|
"""Load font from Image (XNA style)"""
|
|
@@ -1348,6 +1406,9 @@ def load_image(fileName: str,) -> Image:
|
|
|
1348
1406
|
def load_image_anim(fileName: str,frames: Any,) -> Image:
|
|
1349
1407
|
"""Load image sequence from file (frames appended to image.data)"""
|
|
1350
1408
|
...
|
|
1409
|
+
def load_image_anim_from_memory(fileType: str,fileData: str,dataSize: int,frames: Any,) -> Image:
|
|
1410
|
+
"""Load image sequence from memory buffer"""
|
|
1411
|
+
...
|
|
1351
1412
|
def load_image_colors(image: Image,) -> Any:
|
|
1352
1413
|
"""Load color data from image as a Color array (RGBA - 32bit)"""
|
|
1353
1414
|
...
|
|
@@ -1366,9 +1427,6 @@ def load_image_palette(image: Image,maxPaletteSize: int,colorCount: Any,) -> Any
|
|
|
1366
1427
|
def load_image_raw(fileName: str,width: int,height: int,format: int,headerSize: int,) -> Image:
|
|
1367
1428
|
"""Load image from RAW file data"""
|
|
1368
1429
|
...
|
|
1369
|
-
def load_image_svg(fileNameOrString: str,width: int,height: int,) -> Image:
|
|
1370
|
-
"""Load image from SVG file data or string with specified size"""
|
|
1371
|
-
...
|
|
1372
1430
|
def load_material_default() -> Material:
|
|
1373
1431
|
"""Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)"""
|
|
1374
1432
|
...
|
|
@@ -1435,13 +1493,19 @@ def load_wave_from_memory(fileType: str,fileData: str,dataSize: int,) -> Wave:
|
|
|
1435
1493
|
def load_wave_samples(wave: Wave,) -> Any:
|
|
1436
1494
|
"""Load samples data from wave as a 32bit float data array"""
|
|
1437
1495
|
...
|
|
1496
|
+
def make_directory(dirPath: str,) -> int:
|
|
1497
|
+
"""Create directories (including full path requested), returns 0 on success"""
|
|
1498
|
+
...
|
|
1438
1499
|
def matrix_add(left: Matrix,right: Matrix,) -> Matrix:
|
|
1439
1500
|
""""""
|
|
1440
1501
|
...
|
|
1502
|
+
def matrix_decompose(mat: Matrix,translation: Any,rotation: Any,scale: Any,) -> None:
|
|
1503
|
+
""""""
|
|
1504
|
+
...
|
|
1441
1505
|
def matrix_determinant(mat: Matrix,) -> float:
|
|
1442
1506
|
""""""
|
|
1443
1507
|
...
|
|
1444
|
-
def matrix_frustum(left: float,right: float,bottom: float,top: float,
|
|
1508
|
+
def matrix_frustum(left: float,right: float,bottom: float,top: float,nearPlane: float,farPlane: float,) -> Matrix:
|
|
1445
1509
|
""""""
|
|
1446
1510
|
...
|
|
1447
1511
|
def matrix_identity() -> Matrix:
|
|
@@ -1564,6 +1628,9 @@ def quaternion_add(q1: Vector4,q2: Vector4,) -> Vector4:
|
|
|
1564
1628
|
def quaternion_add_value(q: Vector4,add: float,) -> Vector4:
|
|
1565
1629
|
""""""
|
|
1566
1630
|
...
|
|
1631
|
+
def quaternion_cubic_hermite_spline(q1: Vector4,outTangent1: Vector4,q2: Vector4,inTangent2: Vector4,t: float,) -> Vector4:
|
|
1632
|
+
""""""
|
|
1633
|
+
...
|
|
1567
1634
|
def quaternion_divide(q1: Vector4,q2: Vector4,) -> Vector4:
|
|
1568
1635
|
""""""
|
|
1569
1636
|
...
|
|
@@ -1687,6 +1754,9 @@ def set_exit_key(key: int,) -> None:
|
|
|
1687
1754
|
def set_gamepad_mappings(mappings: str,) -> int:
|
|
1688
1755
|
"""Set internal gamepad mappings (SDL_GameControllerDB)"""
|
|
1689
1756
|
...
|
|
1757
|
+
def set_gamepad_vibration(gamepad: int,leftMotor: float,rightMotor: float,) -> None:
|
|
1758
|
+
"""Set gamepad vibration for both motors"""
|
|
1759
|
+
...
|
|
1690
1760
|
def set_gestures_enabled(flags: int,) -> None:
|
|
1691
1761
|
"""Enable a set of gestures using flags"""
|
|
1692
1762
|
...
|
|
@@ -1879,6 +1949,12 @@ def text_split(text: str,delimiter: str,count: Any,) -> list[str]:
|
|
|
1879
1949
|
def text_subtext(text: str,position: int,length: int,) -> str:
|
|
1880
1950
|
"""Get a piece of a text string"""
|
|
1881
1951
|
...
|
|
1952
|
+
def text_to_camel(text: str,) -> str:
|
|
1953
|
+
"""Get Camel case notation version of provided string"""
|
|
1954
|
+
...
|
|
1955
|
+
def text_to_float(text: str,) -> float:
|
|
1956
|
+
"""Get float value from text (negative values not supported)"""
|
|
1957
|
+
...
|
|
1882
1958
|
def text_to_integer(text: str,) -> int:
|
|
1883
1959
|
"""Get integer value from text (negative values not supported)"""
|
|
1884
1960
|
...
|
|
@@ -1888,14 +1964,17 @@ def text_to_lower(text: str,) -> str:
|
|
|
1888
1964
|
def text_to_pascal(text: str,) -> str:
|
|
1889
1965
|
"""Get Pascal case notation version of provided string"""
|
|
1890
1966
|
...
|
|
1967
|
+
def text_to_snake(text: str,) -> str:
|
|
1968
|
+
"""Get Snake case notation version of provided string"""
|
|
1969
|
+
...
|
|
1891
1970
|
def text_to_upper(text: str,) -> str:
|
|
1892
1971
|
"""Get upper case version of provided string"""
|
|
1893
1972
|
...
|
|
1894
1973
|
def toggle_borderless_windowed() -> None:
|
|
1895
|
-
"""Toggle window state: borderless windowed (only PLATFORM_DESKTOP)"""
|
|
1974
|
+
"""Toggle window state: borderless windowed [resizes window to match monitor resolution] (only PLATFORM_DESKTOP)"""
|
|
1896
1975
|
...
|
|
1897
1976
|
def toggle_fullscreen() -> None:
|
|
1898
|
-
"""Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)"""
|
|
1977
|
+
"""Toggle window state: fullscreen/windowed [resizes monitor to match window resolution] (only PLATFORM_DESKTOP)"""
|
|
1899
1978
|
...
|
|
1900
1979
|
def trace_log(*args) -> None:
|
|
1901
1980
|
"""VARARG FUNCTION - MAY NOT BE SUPPORTED BY CFFI"""
|
|
@@ -1903,7 +1982,7 @@ def trace_log(*args) -> None:
|
|
|
1903
1982
|
def unload_audio_stream(stream: AudioStream,) -> None:
|
|
1904
1983
|
"""Unload audio stream and free memory"""
|
|
1905
1984
|
...
|
|
1906
|
-
def unload_automation_event_list(list_0:
|
|
1985
|
+
def unload_automation_event_list(list_0: AutomationEventList,) -> None:
|
|
1907
1986
|
"""Unload automation events list from file"""
|
|
1908
1987
|
...
|
|
1909
1988
|
def unload_codepoints(codepoints: Any,) -> None:
|
|
@@ -1999,6 +2078,9 @@ def update_mesh_buffer(mesh: Mesh,index: int,data: Any,dataSize: int,offset: int
|
|
|
1999
2078
|
def update_model_animation(model: Model,anim: ModelAnimation,frame: int,) -> None:
|
|
2000
2079
|
"""Update model animation pose"""
|
|
2001
2080
|
...
|
|
2081
|
+
def update_model_animation_bone_matrices(model: Model,anim: ModelAnimation,frame: int,) -> None:
|
|
2082
|
+
"""Update model animation mesh bone matrices (Note GPU skinning does not work on Mac)"""
|
|
2083
|
+
...
|
|
2002
2084
|
def update_music_stream(music: Music,) -> None:
|
|
2003
2085
|
"""Updates buffers for music streaming"""
|
|
2004
2086
|
...
|
|
@@ -2062,6 +2144,12 @@ def vector2_lerp(v1: Vector2,v2: Vector2,amount: float,) -> Vector2:
|
|
|
2062
2144
|
def vector2_line_angle(start: Vector2,end: Vector2,) -> float:
|
|
2063
2145
|
""""""
|
|
2064
2146
|
...
|
|
2147
|
+
def vector2_max(v1: Vector2,v2: Vector2,) -> Vector2:
|
|
2148
|
+
""""""
|
|
2149
|
+
...
|
|
2150
|
+
def vector2_min(v1: Vector2,v2: Vector2,) -> Vector2:
|
|
2151
|
+
""""""
|
|
2152
|
+
...
|
|
2065
2153
|
def vector2_move_towards(v: Vector2,target: Vector2,maxDistance: float,) -> Vector2:
|
|
2066
2154
|
""""""
|
|
2067
2155
|
...
|
|
@@ -2080,6 +2168,9 @@ def vector2_one() -> Vector2:
|
|
|
2080
2168
|
def vector2_reflect(v: Vector2,normal: Vector2,) -> Vector2:
|
|
2081
2169
|
""""""
|
|
2082
2170
|
...
|
|
2171
|
+
def vector2_refract(v: Vector2,n: Vector2,r: float,) -> Vector2:
|
|
2172
|
+
""""""
|
|
2173
|
+
...
|
|
2083
2174
|
def vector2_rotate(v: Vector2,angle: float,) -> Vector2:
|
|
2084
2175
|
""""""
|
|
2085
2176
|
...
|
|
@@ -2119,6 +2210,9 @@ def vector3_clamp_value(v: Vector3,min_1: float,max_2: float,) -> Vector3:
|
|
|
2119
2210
|
def vector3_cross_product(v1: Vector3,v2: Vector3,) -> Vector3:
|
|
2120
2211
|
""""""
|
|
2121
2212
|
...
|
|
2213
|
+
def vector3_cubic_hermite(v1: Vector3,tangent1: Vector3,v2: Vector3,tangent2: Vector3,amount: float,) -> Vector3:
|
|
2214
|
+
""""""
|
|
2215
|
+
...
|
|
2122
2216
|
def vector_3distance(v1: Vector3,v2: Vector3,) -> float:
|
|
2123
2217
|
""""""
|
|
2124
2218
|
...
|
|
@@ -2152,6 +2246,9 @@ def vector3_max(v1: Vector3,v2: Vector3,) -> Vector3:
|
|
|
2152
2246
|
def vector3_min(v1: Vector3,v2: Vector3,) -> Vector3:
|
|
2153
2247
|
""""""
|
|
2154
2248
|
...
|
|
2249
|
+
def vector3_move_towards(v: Vector3,target: Vector3,maxDistance: float,) -> Vector3:
|
|
2250
|
+
""""""
|
|
2251
|
+
...
|
|
2155
2252
|
def vector3_multiply(v1: Vector3,v2: Vector3,) -> Vector3:
|
|
2156
2253
|
""""""
|
|
2157
2254
|
...
|
|
@@ -2209,14 +2306,80 @@ def vector3_unproject(source: Vector3,projection: Matrix,view: Matrix,) -> Vecto
|
|
|
2209
2306
|
def vector3_zero() -> Vector3:
|
|
2210
2307
|
""""""
|
|
2211
2308
|
...
|
|
2309
|
+
def vector4_add(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2310
|
+
""""""
|
|
2311
|
+
...
|
|
2312
|
+
def vector4_add_value(v: Vector4,add: float,) -> Vector4:
|
|
2313
|
+
""""""
|
|
2314
|
+
...
|
|
2315
|
+
def vector4_distance(v1: Vector4,v2: Vector4,) -> float:
|
|
2316
|
+
""""""
|
|
2317
|
+
...
|
|
2318
|
+
def vector4_distance_sqr(v1: Vector4,v2: Vector4,) -> float:
|
|
2319
|
+
""""""
|
|
2320
|
+
...
|
|
2321
|
+
def vector4_divide(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2322
|
+
""""""
|
|
2323
|
+
...
|
|
2324
|
+
def vector4_dot_product(v1: Vector4,v2: Vector4,) -> float:
|
|
2325
|
+
""""""
|
|
2326
|
+
...
|
|
2327
|
+
def vector4_equals(p: Vector4,q: Vector4,) -> int:
|
|
2328
|
+
""""""
|
|
2329
|
+
...
|
|
2330
|
+
def vector4_invert(v: Vector4,) -> Vector4:
|
|
2331
|
+
""""""
|
|
2332
|
+
...
|
|
2333
|
+
def vector4_length(v: Vector4,) -> float:
|
|
2334
|
+
""""""
|
|
2335
|
+
...
|
|
2336
|
+
def vector4_length_sqr(v: Vector4,) -> float:
|
|
2337
|
+
""""""
|
|
2338
|
+
...
|
|
2339
|
+
def vector4_lerp(v1: Vector4,v2: Vector4,amount: float,) -> Vector4:
|
|
2340
|
+
""""""
|
|
2341
|
+
...
|
|
2342
|
+
def vector4_max(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2343
|
+
""""""
|
|
2344
|
+
...
|
|
2345
|
+
def vector4_min(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2346
|
+
""""""
|
|
2347
|
+
...
|
|
2348
|
+
def vector4_move_towards(v: Vector4,target: Vector4,maxDistance: float,) -> Vector4:
|
|
2349
|
+
""""""
|
|
2350
|
+
...
|
|
2351
|
+
def vector4_multiply(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2352
|
+
""""""
|
|
2353
|
+
...
|
|
2354
|
+
def vector4_negate(v: Vector4,) -> Vector4:
|
|
2355
|
+
""""""
|
|
2356
|
+
...
|
|
2357
|
+
def vector4_normalize(v: Vector4,) -> Vector4:
|
|
2358
|
+
""""""
|
|
2359
|
+
...
|
|
2360
|
+
def vector4_one() -> Vector4:
|
|
2361
|
+
""""""
|
|
2362
|
+
...
|
|
2363
|
+
def vector4_scale(v: Vector4,scale: float,) -> Vector4:
|
|
2364
|
+
""""""
|
|
2365
|
+
...
|
|
2366
|
+
def vector4_subtract(v1: Vector4,v2: Vector4,) -> Vector4:
|
|
2367
|
+
""""""
|
|
2368
|
+
...
|
|
2369
|
+
def vector4_subtract_value(v: Vector4,add: float,) -> Vector4:
|
|
2370
|
+
""""""
|
|
2371
|
+
...
|
|
2372
|
+
def vector4_zero() -> Vector4:
|
|
2373
|
+
""""""
|
|
2374
|
+
...
|
|
2212
2375
|
def wait_time(seconds: float,) -> None:
|
|
2213
2376
|
"""Wait for some time (halt program execution)"""
|
|
2214
2377
|
...
|
|
2215
2378
|
def wave_copy(wave: Wave,) -> Wave:
|
|
2216
2379
|
"""Copy a wave to a new wave"""
|
|
2217
2380
|
...
|
|
2218
|
-
def wave_crop(wave: Any,
|
|
2219
|
-
"""Crop a wave to defined
|
|
2381
|
+
def wave_crop(wave: Any,initFrame: int,finalFrame: int,) -> None:
|
|
2382
|
+
"""Crop a wave to defined frames range"""
|
|
2220
2383
|
...
|
|
2221
2384
|
def wave_format(wave: Any,sampleRate: int,sampleSize: int,channels: int,) -> None:
|
|
2222
2385
|
"""Convert wave data to desired format"""
|
|
@@ -2383,6 +2546,9 @@ def glfw_get_window_pos(window: Any,xpos: Any,ypos: Any,) -> None:
|
|
|
2383
2546
|
def glfw_get_window_size(window: Any,width: Any,height: Any,) -> None:
|
|
2384
2547
|
""""""
|
|
2385
2548
|
...
|
|
2549
|
+
def glfw_get_window_title(window: Any,) -> str:
|
|
2550
|
+
""""""
|
|
2551
|
+
...
|
|
2386
2552
|
def glfw_get_window_user_pointer(window: Any,) -> Any:
|
|
2387
2553
|
""""""
|
|
2388
2554
|
...
|
|
@@ -2593,6 +2759,9 @@ def rl_active_texture_slot(slot: int,) -> None:
|
|
|
2593
2759
|
def rl_begin(mode: int,) -> None:
|
|
2594
2760
|
"""Initialize drawing mode (how to organize vertex)"""
|
|
2595
2761
|
...
|
|
2762
|
+
def rl_bind_framebuffer(target: int,framebuffer: int,) -> None:
|
|
2763
|
+
"""Bind framebuffer (FBO)"""
|
|
2764
|
+
...
|
|
2596
2765
|
def rl_bind_image_texture(id: int,index: int,format: int,readonly: bool,) -> None:
|
|
2597
2766
|
"""Bind image texture"""
|
|
2598
2767
|
...
|
|
@@ -2623,6 +2792,9 @@ def rl_color4f(x: float,y: float,z: float,w: float,) -> None:
|
|
|
2623
2792
|
def rl_color4ub(r: str,g: str,b: str,a: str,) -> None:
|
|
2624
2793
|
"""Define one vertex (color) - 4 byte"""
|
|
2625
2794
|
...
|
|
2795
|
+
def rl_color_mask(r: bool,g: bool,b: bool,a: bool,) -> None:
|
|
2796
|
+
"""Color mask control"""
|
|
2797
|
+
...
|
|
2626
2798
|
def rl_compile_shader(shaderCode: str,type: int,) -> int:
|
|
2627
2799
|
"""Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)"""
|
|
2628
2800
|
...
|
|
@@ -2681,7 +2853,7 @@ def rl_disable_vertex_buffer_element() -> None:
|
|
|
2681
2853
|
"""Disable vertex buffer element (VBO element)"""
|
|
2682
2854
|
...
|
|
2683
2855
|
def rl_disable_wire_mode() -> None:
|
|
2684
|
-
"""Disable wire
|
|
2856
|
+
"""Disable wire (and point) mode"""
|
|
2685
2857
|
...
|
|
2686
2858
|
def rl_draw_render_batch(batch: Any,) -> None:
|
|
2687
2859
|
"""Draw render batch data (Update->Draw->Reset)"""
|
|
@@ -2690,16 +2862,16 @@ def rl_draw_render_batch_active() -> None:
|
|
|
2690
2862
|
"""Update and draw internal render batch"""
|
|
2691
2863
|
...
|
|
2692
2864
|
def rl_draw_vertex_array(offset: int,count: int,) -> None:
|
|
2693
|
-
""""""
|
|
2865
|
+
"""Draw vertex array (currently active vao)"""
|
|
2694
2866
|
...
|
|
2695
2867
|
def rl_draw_vertex_array_elements(offset: int,count: int,buffer: Any,) -> None:
|
|
2696
|
-
""""""
|
|
2868
|
+
"""Draw vertex array elements"""
|
|
2697
2869
|
...
|
|
2698
2870
|
def rl_draw_vertex_array_elements_instanced(offset: int,count: int,buffer: Any,instances: int,) -> None:
|
|
2699
|
-
""""""
|
|
2871
|
+
"""Draw vertex array elements with instancing"""
|
|
2700
2872
|
...
|
|
2701
2873
|
def rl_draw_vertex_array_instanced(offset: int,count: int,instances: int,) -> None:
|
|
2702
|
-
""""""
|
|
2874
|
+
"""Draw vertex array (currently active vao) with instancing"""
|
|
2703
2875
|
...
|
|
2704
2876
|
def rl_enable_backface_culling() -> None:
|
|
2705
2877
|
"""Enable backface culling"""
|
|
@@ -2767,6 +2939,15 @@ def rl_frustum(left: float,right: float,bottom: float,top: float,znear: float,zf
|
|
|
2767
2939
|
def rl_gen_texture_mipmaps(id: int,width: int,height: int,format: int,mipmaps: Any,) -> None:
|
|
2768
2940
|
"""Generate mipmap data for selected texture"""
|
|
2769
2941
|
...
|
|
2942
|
+
def rl_get_active_framebuffer() -> int:
|
|
2943
|
+
"""Get the currently active render texture (fbo), 0 for default framebuffer"""
|
|
2944
|
+
...
|
|
2945
|
+
def rl_get_cull_distance_far() -> float:
|
|
2946
|
+
"""Get cull plane distance far"""
|
|
2947
|
+
...
|
|
2948
|
+
def rl_get_cull_distance_near() -> float:
|
|
2949
|
+
"""Get cull plane distance near"""
|
|
2950
|
+
...
|
|
2770
2951
|
def rl_get_framebuffer_height() -> int:
|
|
2771
2952
|
"""Get default framebuffer height"""
|
|
2772
2953
|
...
|
|
@@ -2833,7 +3014,7 @@ def rl_load_draw_quad() -> None:
|
|
|
2833
3014
|
def rl_load_extensions(loader: Any,) -> None:
|
|
2834
3015
|
"""Load OpenGL extensions (loader function required)"""
|
|
2835
3016
|
...
|
|
2836
|
-
def rl_load_framebuffer(
|
|
3017
|
+
def rl_load_framebuffer() -> int:
|
|
2837
3018
|
"""Load an empty framebuffer"""
|
|
2838
3019
|
...
|
|
2839
3020
|
def rl_load_identity() -> None:
|
|
@@ -2852,10 +3033,10 @@ def rl_load_shader_program(vShaderId: int,fShaderId: int,) -> int:
|
|
|
2852
3033
|
"""Load custom shader program"""
|
|
2853
3034
|
...
|
|
2854
3035
|
def rl_load_texture(data: Any,width: int,height: int,format: int,mipmapCount: int,) -> int:
|
|
2855
|
-
"""Load texture
|
|
3036
|
+
"""Load texture data"""
|
|
2856
3037
|
...
|
|
2857
3038
|
def rl_load_texture_cubemap(data: Any,size: int,format: int,) -> int:
|
|
2858
|
-
"""Load texture cubemap"""
|
|
3039
|
+
"""Load texture cubemap data"""
|
|
2859
3040
|
...
|
|
2860
3041
|
def rl_load_texture_depth(width: int,height: int,useRenderBuffer: bool,) -> int:
|
|
2861
3042
|
"""Load depth texture/renderbuffer (to be attached to fbo)"""
|
|
@@ -2864,10 +3045,10 @@ def rl_load_vertex_array() -> int:
|
|
|
2864
3045
|
"""Load vertex array (vao) if supported"""
|
|
2865
3046
|
...
|
|
2866
3047
|
def rl_load_vertex_buffer(buffer: Any,size: int,dynamic: bool,) -> int:
|
|
2867
|
-
"""Load a vertex buffer
|
|
3048
|
+
"""Load a vertex buffer object"""
|
|
2868
3049
|
...
|
|
2869
3050
|
def rl_load_vertex_buffer_element(buffer: Any,size: int,dynamic: bool,) -> int:
|
|
2870
|
-
"""Load
|
|
3051
|
+
"""Load vertex buffer elements object"""
|
|
2871
3052
|
...
|
|
2872
3053
|
def rl_matrix_mode(mode: int,) -> None:
|
|
2873
3054
|
"""Choose the current matrix to be transformed"""
|
|
@@ -2914,6 +3095,9 @@ def rl_set_blend_factors_separate(glSrcRGB: int,glDstRGB: int,glSrcAlpha: int,gl
|
|
|
2914
3095
|
def rl_set_blend_mode(mode: int,) -> None:
|
|
2915
3096
|
"""Set blending mode"""
|
|
2916
3097
|
...
|
|
3098
|
+
def rl_set_clip_planes(nearPlane: float,farPlane: float,) -> None:
|
|
3099
|
+
"""Set clip planes distances"""
|
|
3100
|
+
...
|
|
2917
3101
|
def rl_set_cull_face(mode: int,) -> None:
|
|
2918
3102
|
"""Set face culling mode"""
|
|
2919
3103
|
...
|
|
@@ -2950,20 +3134,23 @@ def rl_set_texture(id: int,) -> None:
|
|
|
2950
3134
|
def rl_set_uniform(locIndex: int,value: Any,uniformType: int,count: int,) -> None:
|
|
2951
3135
|
"""Set shader value uniform"""
|
|
2952
3136
|
...
|
|
3137
|
+
def rl_set_uniform_matrices(locIndex: int,mat: Any,count: int,) -> None:
|
|
3138
|
+
"""Set shader value matrices"""
|
|
3139
|
+
...
|
|
2953
3140
|
def rl_set_uniform_matrix(locIndex: int,mat: Matrix,) -> None:
|
|
2954
3141
|
"""Set shader value matrix"""
|
|
2955
3142
|
...
|
|
2956
3143
|
def rl_set_uniform_sampler(locIndex: int,textureId: int,) -> None:
|
|
2957
3144
|
"""Set shader value sampler"""
|
|
2958
3145
|
...
|
|
2959
|
-
def rl_set_vertex_attribute(index: int,compSize: int,type: int,normalized: bool,stride: int,
|
|
2960
|
-
""""""
|
|
3146
|
+
def rl_set_vertex_attribute(index: int,compSize: int,type: int,normalized: bool,stride: int,offset: int,) -> None:
|
|
3147
|
+
"""Set vertex attribute data configuration"""
|
|
2961
3148
|
...
|
|
2962
3149
|
def rl_set_vertex_attribute_default(locIndex: int,value: Any,attribType: int,count: int,) -> None:
|
|
2963
|
-
"""Set vertex attribute default value"""
|
|
3150
|
+
"""Set vertex attribute default value, when attribute to provided"""
|
|
2964
3151
|
...
|
|
2965
3152
|
def rl_set_vertex_attribute_divisor(index: int,divisor: int,) -> None:
|
|
2966
|
-
""""""
|
|
3153
|
+
"""Set vertex attribute data divisor"""
|
|
2967
3154
|
...
|
|
2968
3155
|
def rl_tex_coord2f(x: float,y: float,) -> None:
|
|
2969
3156
|
"""Define one vertex (texture coordinate) - 2 float"""
|
|
@@ -2990,22 +3177,22 @@ def rl_unload_texture(id: int,) -> None:
|
|
|
2990
3177
|
"""Unload texture from GPU memory"""
|
|
2991
3178
|
...
|
|
2992
3179
|
def rl_unload_vertex_array(vaoId: int,) -> None:
|
|
2993
|
-
""""""
|
|
3180
|
+
"""Unload vertex array (vao)"""
|
|
2994
3181
|
...
|
|
2995
3182
|
def rl_unload_vertex_buffer(vboId: int,) -> None:
|
|
2996
|
-
""""""
|
|
3183
|
+
"""Unload vertex buffer object"""
|
|
2997
3184
|
...
|
|
2998
3185
|
def rl_update_shader_buffer(id: int,data: Any,dataSize: int,offset: int,) -> None:
|
|
2999
3186
|
"""Update SSBO buffer data"""
|
|
3000
3187
|
...
|
|
3001
3188
|
def rl_update_texture(id: int,offsetX: int,offsetY: int,width: int,height: int,format: int,data: Any,) -> None:
|
|
3002
|
-
"""Update
|
|
3189
|
+
"""Update texture with new data on GPU"""
|
|
3003
3190
|
...
|
|
3004
3191
|
def rl_update_vertex_buffer(bufferId: int,data: Any,dataSize: int,offset: int,) -> None:
|
|
3005
|
-
"""Update
|
|
3192
|
+
"""Update vertex buffer object data on GPU buffer"""
|
|
3006
3193
|
...
|
|
3007
3194
|
def rl_update_vertex_buffer_elements(id: int,data: Any,dataSize: int,offset: int,) -> None:
|
|
3008
|
-
"""Update vertex buffer elements
|
|
3195
|
+
"""Update vertex buffer elements data on GPU buffer"""
|
|
3009
3196
|
...
|
|
3010
3197
|
def rl_vertex2f(x: float,y: float,) -> None:
|
|
3011
3198
|
"""Define one vertex (position) - 2 float"""
|
|
@@ -3154,7 +3341,7 @@ class Matrix2x2:
|
|
|
3154
3341
|
self.m11=m11
|
|
3155
3342
|
class Mesh:
|
|
3156
3343
|
""" struct """
|
|
3157
|
-
def __init__(self, vertexCount, triangleCount, vertices, texcoords, texcoords2, normals, tangents, colors, indices, animVertices, animNormals, boneIds, boneWeights, vaoId, vboId):
|
|
3344
|
+
def __init__(self, vertexCount, triangleCount, vertices, texcoords, texcoords2, normals, tangents, colors, indices, animVertices, animNormals, boneIds, boneWeights, boneMatrices, boneCount, vaoId, vboId):
|
|
3158
3345
|
self.vertexCount=vertexCount
|
|
3159
3346
|
self.triangleCount=triangleCount
|
|
3160
3347
|
self.vertices=vertices
|
|
@@ -3168,6 +3355,8 @@ class Mesh:
|
|
|
3168
3355
|
self.animNormals=animNormals
|
|
3169
3356
|
self.boneIds=boneIds
|
|
3170
3357
|
self.boneWeights=boneWeights
|
|
3358
|
+
self.boneMatrices=boneMatrices
|
|
3359
|
+
self.boneCount=boneCount
|
|
3171
3360
|
self.vaoId=vaoId
|
|
3172
3361
|
self.vboId=vboId
|
|
3173
3362
|
class Model:
|
|
@@ -3333,12 +3522,11 @@ class Vector4:
|
|
|
3333
3522
|
self.w=w
|
|
3334
3523
|
class VrDeviceInfo:
|
|
3335
3524
|
""" struct """
|
|
3336
|
-
def __init__(self, hResolution, vResolution, hScreenSize, vScreenSize,
|
|
3525
|
+
def __init__(self, hResolution, vResolution, hScreenSize, vScreenSize, eyeToScreenDistance, lensSeparationDistance, interpupillaryDistance, lensDistortionValues, chromaAbCorrection):
|
|
3337
3526
|
self.hResolution=hResolution
|
|
3338
3527
|
self.vResolution=vResolution
|
|
3339
3528
|
self.hScreenSize=hScreenSize
|
|
3340
3529
|
self.vScreenSize=vScreenSize
|
|
3341
|
-
self.vScreenCenter=vScreenCenter
|
|
3342
3530
|
self.eyeToScreenDistance=eyeToScreenDistance
|
|
3343
3531
|
self.lensSeparationDistance=lensSeparationDistance
|
|
3344
3532
|
self.interpupillaryDistance=interpupillaryDistance
|
|
@@ -3389,10 +3577,11 @@ class rlRenderBatch:
|
|
|
3389
3577
|
self.currentDepth=currentDepth
|
|
3390
3578
|
class rlVertexBuffer:
|
|
3391
3579
|
""" struct """
|
|
3392
|
-
def __init__(self, elementCount, vertices, texcoords, colors, indices, vaoId, vboId):
|
|
3580
|
+
def __init__(self, elementCount, vertices, texcoords, normals, colors, indices, vaoId, vboId):
|
|
3393
3581
|
self.elementCount=elementCount
|
|
3394
3582
|
self.vertices=vertices
|
|
3395
3583
|
self.texcoords=texcoords
|
|
3584
|
+
self.normals=normals
|
|
3396
3585
|
self.colors=colors
|
|
3397
3586
|
self.indices=indices
|
|
3398
3587
|
self.vaoId=vaoId
|
|
@@ -3563,7 +3752,7 @@ class KeyboardKey(IntEnum):
|
|
|
3563
3752
|
KEY_KP_ENTER = 335
|
|
3564
3753
|
KEY_KP_EQUAL = 336
|
|
3565
3754
|
KEY_BACK = 4
|
|
3566
|
-
KEY_MENU =
|
|
3755
|
+
KEY_MENU = 5
|
|
3567
3756
|
KEY_VOLUME_UP = 24
|
|
3568
3757
|
KEY_VOLUME_DOWN = 25
|
|
3569
3758
|
|
|
@@ -3657,6 +3846,9 @@ class ShaderLocationIndex(IntEnum):
|
|
|
3657
3846
|
SHADER_LOC_MAP_IRRADIANCE = 23
|
|
3658
3847
|
SHADER_LOC_MAP_PREFILTER = 24
|
|
3659
3848
|
SHADER_LOC_MAP_BRDF = 25
|
|
3849
|
+
SHADER_LOC_VERTEX_BONEIDS = 26
|
|
3850
|
+
SHADER_LOC_VERTEX_BONEWEIGHTS = 27
|
|
3851
|
+
SHADER_LOC_BONE_MATRICES = 28
|
|
3660
3852
|
|
|
3661
3853
|
class ShaderUniformDataType(IntEnum):
|
|
3662
3854
|
SHADER_UNIFORM_FLOAT = 0
|
|
@@ -3860,6 +4052,8 @@ class GuiComboBoxProperty(IntEnum):
|
|
|
3860
4052
|
class GuiDropdownBoxProperty(IntEnum):
|
|
3861
4053
|
ARROW_PADDING = 16
|
|
3862
4054
|
DROPDOWN_ITEMS_SPACING = 17
|
|
4055
|
+
DROPDOWN_ARROW_HIDDEN = 18
|
|
4056
|
+
DROPDOWN_ROLL_UP = 19
|
|
3863
4057
|
|
|
3864
4058
|
class GuiTextBoxProperty(IntEnum):
|
|
3865
4059
|
TEXT_READONLY = 16
|
|
@@ -3873,6 +4067,7 @@ class GuiListViewProperty(IntEnum):
|
|
|
3873
4067
|
LIST_ITEMS_SPACING = 17
|
|
3874
4068
|
SCROLLBAR_WIDTH = 18
|
|
3875
4069
|
SCROLLBAR_SIDE = 19
|
|
4070
|
+
LIST_ITEMS_BORDER_WIDTH = 20
|
|
3876
4071
|
|
|
3877
4072
|
class GuiColorPickerProperty(IntEnum):
|
|
3878
4073
|
COLOR_SELECTOR_SIZE = 16
|
|
@@ -4102,15 +4297,15 @@ class GuiIconName(IntEnum):
|
|
|
4102
4297
|
ICON_FOLDER = 217
|
|
4103
4298
|
ICON_FILE = 218
|
|
4104
4299
|
ICON_SAND_TIMER = 219
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4300
|
+
ICON_WARNING = 220
|
|
4301
|
+
ICON_HELP_BOX = 221
|
|
4302
|
+
ICON_INFO_BOX = 222
|
|
4303
|
+
ICON_PRIORITY = 223
|
|
4304
|
+
ICON_LAYERS_ISO = 224
|
|
4305
|
+
ICON_LAYERS2 = 225
|
|
4306
|
+
ICON_MLAYERS = 226
|
|
4307
|
+
ICON_MAPS = 227
|
|
4308
|
+
ICON_HOT = 228
|
|
4114
4309
|
ICON_229 = 229
|
|
4115
4310
|
ICON_230 = 230
|
|
4116
4311
|
ICON_231 = 231
|