raylib 4.2.1.2__cp37-cp37m-manylinux2014_x86_64.whl → 4.5.0.1__cp37-cp37m-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.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- pyray/__init__.pyi +170 -106
- raylib/__init__.pyi +184 -111
- raylib/_raylib_cffi.abi3.so +0 -0
- raylib/enums.py +17 -13
- raylib/version.py +1 -1
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/METADATA +5 -3
- raylib-4.5.0.1.dist-info/RECORD +15 -0
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/WHEEL +1 -1
- raylib-4.2.1.2.dist-info/RECORD +0 -15
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/LICENSE +0 -0
- {raylib-4.2.1.2.dist-info → raylib-4.5.0.1.dist-info}/top_level.txt +0 -0
pyray/__init__.pyi
CHANGED
|
@@ -4,6 +4,9 @@ from typing import Any
|
|
|
4
4
|
def pointer(struct):
|
|
5
5
|
...
|
|
6
6
|
|
|
7
|
+
def attach_audio_mixed_processor(processor: Any,) -> None:
|
|
8
|
+
"""Attach audio stream processor to the entire audio pipeline"""
|
|
9
|
+
...
|
|
7
10
|
def attach_audio_stream_processor(stream: AudioStream,processor: Any,) -> None:
|
|
8
11
|
"""Attach audio stream processor to stream"""
|
|
9
12
|
...
|
|
@@ -55,6 +58,9 @@ def check_collision_point_circle(point: Vector2,center: Vector2,radius: float,)
|
|
|
55
58
|
def check_collision_point_line(point: Vector2,p1: Vector2,p2: Vector2,threshold: int,) -> bool:
|
|
56
59
|
"""Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]"""
|
|
57
60
|
...
|
|
61
|
+
def check_collision_point_poly(point: Vector2,points: Any,pointCount: int,) -> bool:
|
|
62
|
+
"""Check if point is within a polygon described by array of vertices"""
|
|
63
|
+
...
|
|
58
64
|
def check_collision_point_rec(point: Vector2,rec: Rectangle,) -> bool:
|
|
59
65
|
"""Check if point is inside rectangle"""
|
|
60
66
|
...
|
|
@@ -89,7 +95,7 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
89
95
|
def close_window() -> None:
|
|
90
96
|
"""Close window and unload OpenGL context"""
|
|
91
97
|
...
|
|
92
|
-
def codepoint_to_utf8(codepoint: int,
|
|
98
|
+
def codepoint_to_utf8(codepoint: int,utf8Size: Any,) -> str:
|
|
93
99
|
"""Encode one codepoint into UTF-8 byte array (array length returned as parameter)"""
|
|
94
100
|
...
|
|
95
101
|
def color_alpha(color: Color,alpha: float,) -> Color:
|
|
@@ -98,6 +104,12 @@ def color_alpha(color: Color,alpha: float,) -> Color:
|
|
|
98
104
|
def color_alpha_blend(dst: Color,src: Color,tint: Color,) -> Color:
|
|
99
105
|
"""Get src alpha-blended into dst color with tint"""
|
|
100
106
|
...
|
|
107
|
+
def color_brightness(color: Color,factor: float,) -> Color:
|
|
108
|
+
"""Get color with brightness correction, brightness factor goes from -1.0f to 1.0f"""
|
|
109
|
+
...
|
|
110
|
+
def color_contrast(color: Color,contrast: float,) -> Color:
|
|
111
|
+
"""Get color with contrast correction, contrast values between -1.0f and 1.0f"""
|
|
112
|
+
...
|
|
101
113
|
def color_from_hsv(hue: float,saturation: float,value: float,) -> Color:
|
|
102
114
|
"""Get a Color from HSV values, hue [0..360], saturation/value [0..1]"""
|
|
103
115
|
...
|
|
@@ -107,6 +119,9 @@ def color_from_normalized(normalized: Vector4,) -> Color:
|
|
|
107
119
|
def color_normalize(color: Color,) -> Vector4:
|
|
108
120
|
"""Get Color normalized as float [0..1]"""
|
|
109
121
|
...
|
|
122
|
+
def color_tint(color: Color,tint: Color,) -> Color:
|
|
123
|
+
"""Get color multiplied with another color"""
|
|
124
|
+
...
|
|
110
125
|
def color_to_hsv(color: Color,) -> Vector3:
|
|
111
126
|
"""Get HSV values for a Color, hue [0..360], saturation/value [0..1]"""
|
|
112
127
|
...
|
|
@@ -142,6 +157,9 @@ def destroy_physics_body(PhysicsBodyData_pointer_0: Any,) -> None:
|
|
|
142
157
|
|
|
143
158
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
144
159
|
...
|
|
160
|
+
def detach_audio_mixed_processor(processor: Any,) -> None:
|
|
161
|
+
"""Detach audio stream processor from the entire audio pipeline"""
|
|
162
|
+
...
|
|
145
163
|
def detach_audio_stream_processor(stream: AudioStream,processor: Any,) -> None:
|
|
146
164
|
"""Detach audio stream processor from stream"""
|
|
147
165
|
...
|
|
@@ -166,6 +184,12 @@ def draw_billboard_rec(camera: Camera3D,texture: Texture,source: Rectangle,posit
|
|
|
166
184
|
def draw_bounding_box(box: BoundingBox,color: Color,) -> None:
|
|
167
185
|
"""Draw bounding box (wires)"""
|
|
168
186
|
...
|
|
187
|
+
def draw_capsule(startPos: Vector3,endPos: Vector3,radius: float,slices: int,rings: int,color: Color,) -> None:
|
|
188
|
+
"""Draw a capsule with the center of its sphere caps at startPos and endPos"""
|
|
189
|
+
...
|
|
190
|
+
def draw_capsule_wires(startPos: Vector3,endPos: Vector3,radius: float,slices: int,rings: int,color: Color,) -> None:
|
|
191
|
+
"""Draw capsule wireframe with the center of its sphere caps at startPos and endPos"""
|
|
192
|
+
...
|
|
169
193
|
def draw_circle(centerX: int,centerY: int,radius: float,color: Color,) -> None:
|
|
170
194
|
"""Draw a color-filled circle"""
|
|
171
195
|
...
|
|
@@ -190,12 +214,6 @@ def draw_circle_v(center: Vector2,radius: float,color: Color,) -> None:
|
|
|
190
214
|
def draw_cube(position: Vector3,width: float,height: float,length: float,color: Color,) -> None:
|
|
191
215
|
"""Draw cube"""
|
|
192
216
|
...
|
|
193
|
-
def draw_cube_texture(texture: Texture,position: Vector3,width: float,height: float,length: float,color: Color,) -> None:
|
|
194
|
-
"""Draw cube textured"""
|
|
195
|
-
...
|
|
196
|
-
def draw_cube_texture_rec(texture: Texture,source: Rectangle,position: Vector3,width: float,height: float,length: float,color: Color,) -> None:
|
|
197
|
-
"""Draw cube with a region of a texture"""
|
|
198
|
-
...
|
|
199
217
|
def draw_cube_v(position: Vector3,size: Vector3,color: Color,) -> None:
|
|
200
218
|
"""Draw cube (Vector version)"""
|
|
201
219
|
...
|
|
@@ -367,21 +385,12 @@ def draw_texture_ex(texture: Texture,position: Vector2,rotation: float,scale: fl
|
|
|
367
385
|
def draw_texture_n_patch(texture: Texture,nPatchInfo: NPatchInfo,dest: Rectangle,origin: Vector2,rotation: float,tint: Color,) -> None:
|
|
368
386
|
"""Draws a texture (or part of it) that stretches or shrinks nicely"""
|
|
369
387
|
...
|
|
370
|
-
def draw_texture_poly(texture: Texture,center: Vector2,points: Any,texcoords: Any,pointCount: int,tint: Color,) -> None:
|
|
371
|
-
"""Draw a textured polygon"""
|
|
372
|
-
...
|
|
373
388
|
def draw_texture_pro(texture: Texture,source: Rectangle,dest: Rectangle,origin: Vector2,rotation: float,tint: Color,) -> None:
|
|
374
389
|
"""Draw a part of a texture defined by a rectangle with 'pro' parameters"""
|
|
375
390
|
...
|
|
376
|
-
def draw_texture_quad(texture: Texture,tiling: Vector2,offset: Vector2,quad: Rectangle,tint: Color,) -> None:
|
|
377
|
-
"""Draw texture quad with tiling and offset parameters"""
|
|
378
|
-
...
|
|
379
391
|
def draw_texture_rec(texture: Texture,source: Rectangle,position: Vector2,tint: Color,) -> None:
|
|
380
392
|
"""Draw a part of a texture defined by a rectangle"""
|
|
381
393
|
...
|
|
382
|
-
def draw_texture_tiled(texture: Texture,source: Rectangle,dest: Rectangle,origin: Vector2,rotation: float,scale: float,tint: Color,) -> None:
|
|
383
|
-
"""Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest."""
|
|
384
|
-
...
|
|
385
394
|
def draw_texture_v(texture: Texture,position: Vector2,tint: Color,) -> None:
|
|
386
395
|
"""Draw a Texture2D with position defined as Vector2"""
|
|
387
396
|
...
|
|
@@ -489,6 +498,12 @@ def gen_image_gradient_radial(width: int,height: int,density: float,inner: Color
|
|
|
489
498
|
def gen_image_gradient_v(width: int,height: int,top: Color,bottom: Color,) -> Image:
|
|
490
499
|
"""Generate image: vertical gradient"""
|
|
491
500
|
...
|
|
501
|
+
def gen_image_perlin_noise(width: int,height: int,offsetX: int,offsetY: int,scale: float,) -> Image:
|
|
502
|
+
"""Generate image: perlin noise"""
|
|
503
|
+
...
|
|
504
|
+
def gen_image_text(width: int,height: int,text: str,) -> Image:
|
|
505
|
+
"""Generate image: grayscale image from text data"""
|
|
506
|
+
...
|
|
492
507
|
def gen_image_white_noise(width: int,height: int,factor: float,) -> Image:
|
|
493
508
|
"""Generate image: white noise"""
|
|
494
509
|
...
|
|
@@ -546,12 +561,18 @@ def get_char_pressed() -> int:
|
|
|
546
561
|
def get_clipboard_text() -> str:
|
|
547
562
|
"""Get clipboard text content"""
|
|
548
563
|
...
|
|
549
|
-
def get_codepoint(text: str,
|
|
564
|
+
def get_codepoint(text: str,codepointSize: Any,) -> int:
|
|
550
565
|
"""Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure"""
|
|
551
566
|
...
|
|
552
567
|
def get_codepoint_count(text: str,) -> int:
|
|
553
568
|
"""Get total number of codepoints in a UTF-8 encoded string"""
|
|
554
569
|
...
|
|
570
|
+
def get_codepoint_next(text: str,codepointSize: Any,) -> int:
|
|
571
|
+
"""Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure"""
|
|
572
|
+
...
|
|
573
|
+
def get_codepoint_previous(text: str,codepointSize: Any,) -> int:
|
|
574
|
+
"""Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure"""
|
|
575
|
+
...
|
|
555
576
|
def get_collision_rec(rec1: Rectangle,rec2: Rectangle,) -> Rectangle:
|
|
556
577
|
"""Get collision rectangle for two rectangles collision"""
|
|
557
578
|
...
|
|
@@ -766,9 +787,6 @@ def get_shader_location(shader: Shader,uniformName: str,) -> int:
|
|
|
766
787
|
def get_shader_location_attrib(shader: Shader,attribName: str,) -> int:
|
|
767
788
|
"""Get shader attribute location"""
|
|
768
789
|
...
|
|
769
|
-
def get_sounds_playing() -> int:
|
|
770
|
-
"""Get number of sounds playing in the multichannel"""
|
|
771
|
-
...
|
|
772
790
|
def get_time() -> float:
|
|
773
791
|
"""Get elapsed time in seconds since InitWindow()"""
|
|
774
792
|
...
|
|
@@ -816,16 +834,6 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
816
834
|
def gui_check_box(Rectangle_0: Rectangle,str_1: str,_Bool_2: bool,) -> bool:
|
|
817
835
|
"""_Bool GuiCheckBox(struct Rectangle, char *, _Bool);
|
|
818
836
|
|
|
819
|
-
CFFI C function from raylib._raylib_cffi.lib"""
|
|
820
|
-
...
|
|
821
|
-
def gui_check_icon_pixel(int_0: int,int_1: int,int_2: int,) -> bool:
|
|
822
|
-
"""_Bool GuiCheckIconPixel(int, int, int);
|
|
823
|
-
|
|
824
|
-
CFFI C function from raylib._raylib_cffi.lib"""
|
|
825
|
-
...
|
|
826
|
-
def gui_clear_icon_pixel(int_0: int,int_1: int,int_2: int,) -> None:
|
|
827
|
-
"""void GuiClearIconPixel(int, int, int);
|
|
828
|
-
|
|
829
837
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
830
838
|
...
|
|
831
839
|
def gui_color_bar_alpha(Rectangle_0: Rectangle,str_1: str,float_2: float,) -> float:
|
|
@@ -856,6 +864,11 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
856
864
|
def gui_disable() -> None:
|
|
857
865
|
"""void GuiDisable();
|
|
858
866
|
|
|
867
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
868
|
+
...
|
|
869
|
+
def gui_disable_tooltip() -> None:
|
|
870
|
+
"""void GuiDisableTooltip();
|
|
871
|
+
|
|
859
872
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
860
873
|
...
|
|
861
874
|
def gui_draw_icon(int_0: int,int_1: int,int_2: int,int_3: int,Color_4: Color,) -> None:
|
|
@@ -876,6 +889,11 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
876
889
|
def gui_enable() -> None:
|
|
877
890
|
"""void GuiEnable();
|
|
878
891
|
|
|
892
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
893
|
+
...
|
|
894
|
+
def gui_enable_tooltip() -> None:
|
|
895
|
+
"""void GuiEnableTooltip();
|
|
896
|
+
|
|
879
897
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
880
898
|
...
|
|
881
899
|
def gui_fade(float_0: float,) -> None:
|
|
@@ -886,11 +904,6 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
886
904
|
def gui_get_font() -> Font:
|
|
887
905
|
"""struct Font GuiGetFont();
|
|
888
906
|
|
|
889
|
-
CFFI C function from raylib._raylib_cffi.lib"""
|
|
890
|
-
...
|
|
891
|
-
def gui_get_icon_data(int_0: int,) -> Any:
|
|
892
|
-
"""unsigned int *GuiGetIconData(int);
|
|
893
|
-
|
|
894
907
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
895
908
|
...
|
|
896
909
|
def gui_get_icons() -> Any:
|
|
@@ -951,6 +964,11 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
951
964
|
def gui_list_view_ex(Rectangle_0: Rectangle,str_pointer_1: str,int_2: int,int_pointer_3: Any,int_pointer_4: Any,int_5: int,) -> int:
|
|
952
965
|
"""int GuiListViewEx(struct Rectangle, char * *, int, int *, int *, int);
|
|
953
966
|
|
|
967
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
968
|
+
...
|
|
969
|
+
def gui_load_icons(str_0: str,_Bool_1: bool,) -> str:
|
|
970
|
+
"""char * *GuiLoadIcons(char *, _Bool);
|
|
971
|
+
|
|
954
972
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
955
973
|
...
|
|
956
974
|
def gui_load_style(str_0: str,) -> None:
|
|
@@ -993,18 +1011,8 @@ def gui_set_font(Font_0: Font,) -> None:
|
|
|
993
1011
|
|
|
994
1012
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
995
1013
|
...
|
|
996
|
-
def
|
|
997
|
-
"""void
|
|
998
|
-
|
|
999
|
-
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1000
|
-
...
|
|
1001
|
-
def gui_set_icon_pixel(int_0: int,int_1: int,int_2: int,) -> None:
|
|
1002
|
-
"""void GuiSetIconPixel(int, int, int);
|
|
1003
|
-
|
|
1004
|
-
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1005
|
-
...
|
|
1006
|
-
def gui_set_icon_scale(unsignedint_0: int,) -> None:
|
|
1007
|
-
"""void GuiSetIconScale(unsigned int);
|
|
1014
|
+
def gui_set_icon_scale(int_0: int,) -> None:
|
|
1015
|
+
"""void GuiSetIconScale(int);
|
|
1008
1016
|
|
|
1009
1017
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1010
1018
|
...
|
|
@@ -1016,6 +1024,11 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
1016
1024
|
def gui_set_style(int_0: int,int_1: int,int_2: int,) -> None:
|
|
1017
1025
|
"""void GuiSetStyle(int, int, int);
|
|
1018
1026
|
|
|
1027
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1028
|
+
...
|
|
1029
|
+
def gui_set_tooltip(str_0: str,) -> None:
|
|
1030
|
+
"""void GuiSetTooltip(char *);
|
|
1031
|
+
|
|
1019
1032
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1020
1033
|
...
|
|
1021
1034
|
def gui_slider(Rectangle_0: Rectangle,str_1: str,str_2: str,float_3: float,float_4: float,float_5: float,) -> float:
|
|
@@ -1038,13 +1051,13 @@ def gui_status_bar(Rectangle_0: Rectangle,str_1: str,) -> None:
|
|
|
1038
1051
|
|
|
1039
1052
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1040
1053
|
...
|
|
1041
|
-
def
|
|
1042
|
-
"""
|
|
1054
|
+
def gui_tab_bar(Rectangle_0: Rectangle,str_pointer_1: str,int_2: int,int_pointer_3: Any,) -> int:
|
|
1055
|
+
"""int GuiTabBar(struct Rectangle, char * *, int, int *);
|
|
1043
1056
|
|
|
1044
1057
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1045
1058
|
...
|
|
1046
|
-
def
|
|
1047
|
-
"""_Bool
|
|
1059
|
+
def gui_text_box(Rectangle_0: Rectangle,str_1: str,int_2: int,_Bool_3: bool,) -> bool:
|
|
1060
|
+
"""_Bool GuiTextBox(struct Rectangle, char *, int, _Bool);
|
|
1048
1061
|
|
|
1049
1062
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
1050
1063
|
...
|
|
@@ -1093,6 +1106,9 @@ def image_alpha_mask(image: Any,alphaMask: Image,) -> None:
|
|
|
1093
1106
|
def image_alpha_premultiply(image: Any,) -> None:
|
|
1094
1107
|
"""Premultiply alpha channel"""
|
|
1095
1108
|
...
|
|
1109
|
+
def image_blur_gaussian(image: Any,blurSize: int,) -> None:
|
|
1110
|
+
"""Apply Gaussian blur using a box blur approximation"""
|
|
1111
|
+
...
|
|
1096
1112
|
def image_clear_background(dst: Any,color: Color,) -> None:
|
|
1097
1113
|
"""Clear image background with given color"""
|
|
1098
1114
|
...
|
|
@@ -1127,10 +1143,16 @@ def image_draw(dst: Any,src: Image,srcRec: Rectangle,dstRec: Rectangle,tint: Col
|
|
|
1127
1143
|
"""Draw a source image within a destination image (tint applied to source)"""
|
|
1128
1144
|
...
|
|
1129
1145
|
def image_draw_circle(dst: Any,centerX: int,centerY: int,radius: int,color: Color,) -> None:
|
|
1130
|
-
"""Draw circle within an image"""
|
|
1146
|
+
"""Draw a filled circle within an image"""
|
|
1147
|
+
...
|
|
1148
|
+
def image_draw_circle_lines(dst: Any,centerX: int,centerY: int,radius: int,color: Color,) -> None:
|
|
1149
|
+
"""Draw circle outline within an image"""
|
|
1150
|
+
...
|
|
1151
|
+
def image_draw_circle_lines_v(dst: Any,center: Vector2,radius: int,color: Color,) -> None:
|
|
1152
|
+
"""Draw circle outline within an image (Vector version)"""
|
|
1131
1153
|
...
|
|
1132
1154
|
def image_draw_circle_v(dst: Any,center: Vector2,radius: int,color: Color,) -> None:
|
|
1133
|
-
"""Draw circle within an image (Vector version)"""
|
|
1155
|
+
"""Draw a filled circle within an image (Vector version)"""
|
|
1134
1156
|
...
|
|
1135
1157
|
def image_draw_line(dst: Any,startPosX: int,startPosY: int,endPosX: int,endPosY: int,color: Color,) -> None:
|
|
1136
1158
|
"""Draw line within an image"""
|
|
@@ -1221,6 +1243,9 @@ def is_audio_stream_playing(stream: AudioStream,) -> bool:
|
|
|
1221
1243
|
def is_audio_stream_processed(stream: AudioStream,) -> bool:
|
|
1222
1244
|
"""Check if any audio stream buffers requires refill"""
|
|
1223
1245
|
...
|
|
1246
|
+
def is_audio_stream_ready(stream: AudioStream,) -> bool:
|
|
1247
|
+
"""Checks if an audio stream is ready"""
|
|
1248
|
+
...
|
|
1224
1249
|
def is_cursor_hidden() -> bool:
|
|
1225
1250
|
"""Check if cursor is not visible"""
|
|
1226
1251
|
...
|
|
@@ -1233,6 +1258,9 @@ def is_file_dropped() -> bool:
|
|
|
1233
1258
|
def is_file_extension(fileName: str,ext: str,) -> bool:
|
|
1234
1259
|
"""Check file extension (including point: .png, .wav)"""
|
|
1235
1260
|
...
|
|
1261
|
+
def is_font_ready(font: Font,) -> bool:
|
|
1262
|
+
"""Check if a font is ready"""
|
|
1263
|
+
...
|
|
1236
1264
|
def is_gamepad_available(gamepad: int,) -> bool:
|
|
1237
1265
|
"""Check if a gamepad is available"""
|
|
1238
1266
|
...
|
|
@@ -1251,6 +1279,9 @@ def is_gamepad_button_up(gamepad: int,button: int,) -> bool:
|
|
|
1251
1279
|
def is_gesture_detected(gesture: int,) -> bool:
|
|
1252
1280
|
"""Check if a gesture have been detected"""
|
|
1253
1281
|
...
|
|
1282
|
+
def is_image_ready(image: Image,) -> bool:
|
|
1283
|
+
"""Check if an image is ready"""
|
|
1284
|
+
...
|
|
1254
1285
|
def is_key_down(key: int,) -> bool:
|
|
1255
1286
|
"""Check if a key is being pressed"""
|
|
1256
1287
|
...
|
|
@@ -1263,9 +1294,15 @@ def is_key_released(key: int,) -> bool:
|
|
|
1263
1294
|
def is_key_up(key: int,) -> bool:
|
|
1264
1295
|
"""Check if a key is NOT being pressed"""
|
|
1265
1296
|
...
|
|
1297
|
+
def is_material_ready(material: Material,) -> bool:
|
|
1298
|
+
"""Check if a material is ready"""
|
|
1299
|
+
...
|
|
1266
1300
|
def is_model_animation_valid(model: Model,anim: ModelAnimation,) -> bool:
|
|
1267
1301
|
"""Check model animation skeleton match"""
|
|
1268
1302
|
...
|
|
1303
|
+
def is_model_ready(model: Model,) -> bool:
|
|
1304
|
+
"""Check if a model is ready"""
|
|
1305
|
+
...
|
|
1269
1306
|
def is_mouse_button_down(button: int,) -> bool:
|
|
1270
1307
|
"""Check if a mouse button is being pressed"""
|
|
1271
1308
|
...
|
|
@@ -1278,15 +1315,33 @@ def is_mouse_button_released(button: int,) -> bool:
|
|
|
1278
1315
|
def is_mouse_button_up(button: int,) -> bool:
|
|
1279
1316
|
"""Check if a mouse button is NOT being pressed"""
|
|
1280
1317
|
...
|
|
1318
|
+
def is_music_ready(music: Music,) -> bool:
|
|
1319
|
+
"""Checks if a music stream is ready"""
|
|
1320
|
+
...
|
|
1281
1321
|
def is_music_stream_playing(music: Music,) -> bool:
|
|
1282
1322
|
"""Check if music is playing"""
|
|
1283
1323
|
...
|
|
1284
1324
|
def is_path_file(path: str,) -> bool:
|
|
1285
1325
|
"""Check if a given path is a file or a directory"""
|
|
1286
1326
|
...
|
|
1327
|
+
def is_render_texture_ready(target: RenderTexture,) -> bool:
|
|
1328
|
+
"""Check if a render texture is ready"""
|
|
1329
|
+
...
|
|
1330
|
+
def is_shader_ready(shader: Shader,) -> bool:
|
|
1331
|
+
"""Check if a shader is ready"""
|
|
1332
|
+
...
|
|
1287
1333
|
def is_sound_playing(sound: Sound,) -> bool:
|
|
1288
1334
|
"""Check if a sound is currently playing"""
|
|
1289
1335
|
...
|
|
1336
|
+
def is_sound_ready(sound: Sound,) -> bool:
|
|
1337
|
+
"""Checks if a sound is ready"""
|
|
1338
|
+
...
|
|
1339
|
+
def is_texture_ready(texture: Texture,) -> bool:
|
|
1340
|
+
"""Check if a texture is ready"""
|
|
1341
|
+
...
|
|
1342
|
+
def is_wave_ready(wave: Wave,) -> bool:
|
|
1343
|
+
"""Checks if wave data is ready"""
|
|
1344
|
+
...
|
|
1290
1345
|
def is_window_focused() -> bool:
|
|
1291
1346
|
"""Check if window is currently focused (only PLATFORM_DESKTOP)"""
|
|
1292
1347
|
...
|
|
@@ -1421,6 +1476,9 @@ def load_texture_cubemap(image: Image,layout: int,) -> Texture:
|
|
|
1421
1476
|
def load_texture_from_image(image: Image,) -> Texture:
|
|
1422
1477
|
"""Load texture from image data"""
|
|
1423
1478
|
...
|
|
1479
|
+
def load_utf8(codepoints: Any,length: int,) -> str:
|
|
1480
|
+
"""Load UTF-8 text encoded from codepoints array"""
|
|
1481
|
+
...
|
|
1424
1482
|
def load_vr_stereo_config(device: VrDeviceInfo,) -> VrStereoConfig:
|
|
1425
1483
|
"""Load VR stereo config for VR simulator device parameters"""
|
|
1426
1484
|
...
|
|
@@ -1600,9 +1658,6 @@ def play_music_stream(music: Music,) -> None:
|
|
|
1600
1658
|
def play_sound(sound: Sound,) -> None:
|
|
1601
1659
|
"""Play a sound"""
|
|
1602
1660
|
...
|
|
1603
|
-
def play_sound_multi(sound: Sound,) -> None:
|
|
1604
|
-
"""Play a sound (using multichannel buffer pool)"""
|
|
1605
|
-
...
|
|
1606
1661
|
def poll_input_events() -> None:
|
|
1607
1662
|
"""Register all input events"""
|
|
1608
1663
|
...
|
|
@@ -1767,21 +1822,6 @@ def set_audio_stream_pitch(stream: AudioStream,pitch: float,) -> None:
|
|
|
1767
1822
|
def set_audio_stream_volume(stream: AudioStream,volume: float,) -> None:
|
|
1768
1823
|
"""Set volume for audio stream (1.0 is max level)"""
|
|
1769
1824
|
...
|
|
1770
|
-
def set_camera_alt_control(keyAlt: int,) -> None:
|
|
1771
|
-
"""Set camera alt key to combine with mouse movement (free camera)"""
|
|
1772
|
-
...
|
|
1773
|
-
def set_camera_mode(camera: Camera3D,mode: int,) -> None:
|
|
1774
|
-
"""Set camera mode (multiple camera modes available)"""
|
|
1775
|
-
...
|
|
1776
|
-
def set_camera_move_controls(keyFront: int,keyBack: int,keyRight: int,keyLeft: int,keyUp: int,keyDown: int,) -> None:
|
|
1777
|
-
"""Set camera move controls (1st person and 3rd person cameras)"""
|
|
1778
|
-
...
|
|
1779
|
-
def set_camera_pan_control(keyPan: int,) -> None:
|
|
1780
|
-
"""Set camera pan key to combine with mouse movement (free camera)"""
|
|
1781
|
-
...
|
|
1782
|
-
def set_camera_smooth_zoom_control(keySmoothZoom: int,) -> None:
|
|
1783
|
-
"""Set camera smooth zoom key to combine with mouse (free camera)"""
|
|
1784
|
-
...
|
|
1785
1825
|
def set_clipboard_text(text: str,) -> None:
|
|
1786
1826
|
"""Set clipboard text content"""
|
|
1787
1827
|
...
|
|
@@ -1900,7 +1940,10 @@ def set_trace_log_level(logLevel: int,) -> None:
|
|
|
1900
1940
|
"""Set the current threshold (minimum) log level"""
|
|
1901
1941
|
...
|
|
1902
1942
|
def set_window_icon(image: Image,) -> None:
|
|
1903
|
-
"""Set icon for window (only PLATFORM_DESKTOP)"""
|
|
1943
|
+
"""Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)"""
|
|
1944
|
+
...
|
|
1945
|
+
def set_window_icons(images: Any,count: int,) -> None:
|
|
1946
|
+
"""Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)"""
|
|
1904
1947
|
...
|
|
1905
1948
|
def set_window_min_size(width: int,height: int,) -> None:
|
|
1906
1949
|
"""Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)"""
|
|
@@ -1935,9 +1978,6 @@ def stop_music_stream(music: Music,) -> None:
|
|
|
1935
1978
|
def stop_sound(sound: Sound,) -> None:
|
|
1936
1979
|
"""Stop playing a sound"""
|
|
1937
1980
|
...
|
|
1938
|
-
def stop_sound_multi() -> None:
|
|
1939
|
-
"""Stop any sound playing (using multichannel buffer pool)"""
|
|
1940
|
-
...
|
|
1941
1981
|
def swap_screen_buffer() -> None:
|
|
1942
1982
|
"""Swap back buffer with front buffer (screen drawing)"""
|
|
1943
1983
|
...
|
|
@@ -1947,9 +1987,6 @@ def take_screenshot(fileName: str,) -> None:
|
|
|
1947
1987
|
def text_append(text: str,append: str,position: Any,) -> None:
|
|
1948
1988
|
"""Append text at specific position and move cursor!"""
|
|
1949
1989
|
...
|
|
1950
|
-
def text_codepoints_to_utf8(codepoints: Any,length: int,) -> str:
|
|
1951
|
-
"""Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)"""
|
|
1952
|
-
...
|
|
1953
1990
|
def text_copy(dst: str,src: str,) -> int:
|
|
1954
1991
|
"""Copy one string to another, returns bytes copied"""
|
|
1955
1992
|
...
|
|
@@ -2046,9 +2083,6 @@ def unload_model_animation(anim: ModelAnimation,) -> None:
|
|
|
2046
2083
|
def unload_model_animations(animations: Any,count: int,) -> None:
|
|
2047
2084
|
"""Unload animation array data"""
|
|
2048
2085
|
...
|
|
2049
|
-
def unload_model_keep_meshes(model: Model,) -> None:
|
|
2050
|
-
"""Unload model (but not meshes) from memory (RAM and/or VRAM)"""
|
|
2051
|
-
...
|
|
2052
2086
|
def unload_music_stream(music: Music,) -> None:
|
|
2053
2087
|
"""Unload music stream"""
|
|
2054
2088
|
...
|
|
@@ -2064,6 +2098,9 @@ def unload_sound(sound: Sound,) -> None:
|
|
|
2064
2098
|
def unload_texture(texture: Texture,) -> None:
|
|
2065
2099
|
"""Unload texture from GPU memory (VRAM)"""
|
|
2066
2100
|
...
|
|
2101
|
+
def unload_utf8(text: str,) -> None:
|
|
2102
|
+
"""Unload UTF-8 text encoded from codepoints array"""
|
|
2103
|
+
...
|
|
2067
2104
|
def unload_vr_stereo_config(config: VrStereoConfig,) -> None:
|
|
2068
2105
|
"""Unload VR stereo config"""
|
|
2069
2106
|
...
|
|
@@ -2076,9 +2113,12 @@ def unload_wave_samples(samples: Any,) -> None:
|
|
|
2076
2113
|
def update_audio_stream(stream: AudioStream,data: Any,frameCount: int,) -> None:
|
|
2077
2114
|
"""Update audio stream buffers with data"""
|
|
2078
2115
|
...
|
|
2079
|
-
def update_camera(camera: Any,) -> None:
|
|
2116
|
+
def update_camera(camera: Any,mode: int,) -> None:
|
|
2080
2117
|
"""Update camera position for selected mode"""
|
|
2081
2118
|
...
|
|
2119
|
+
def update_camera_pro(camera: Any,movement: Vector3,rotation: Vector3,zoom: float,) -> None:
|
|
2120
|
+
"""Update camera movement/rotation"""
|
|
2121
|
+
...
|
|
2082
2122
|
def update_mesh_buffer(mesh: Mesh,index: int,data: Any,dataSize: int,offset: int,) -> None:
|
|
2083
2123
|
"""Update mesh vertex data in GPU for a specific buffer index"""
|
|
2084
2124
|
...
|
|
@@ -2173,6 +2213,11 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
2173
2213
|
def vector2_lerp(Vector2_0: Vector2,Vector2_1: Vector2,float_2: float,) -> Vector2:
|
|
2174
2214
|
"""struct Vector2 Vector2Lerp(struct Vector2, struct Vector2, float);
|
|
2175
2215
|
|
|
2216
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2217
|
+
...
|
|
2218
|
+
def vector2_line_angle(Vector2_0: Vector2,Vector2_1: Vector2,) -> float:
|
|
2219
|
+
"""float Vector2LineAngle(struct Vector2, struct Vector2);
|
|
2220
|
+
|
|
2176
2221
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2177
2222
|
...
|
|
2178
2223
|
def vector2_move_towards(Vector2_0: Vector2,Vector2_1: Vector2,float_2: float,) -> Vector2:
|
|
@@ -2445,8 +2490,8 @@ def rl_begin(int_0: int,) -> None:
|
|
|
2445
2490
|
|
|
2446
2491
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2447
2492
|
...
|
|
2448
|
-
def rl_bind_image_texture(unsignedint_0: int,unsignedint_1: int,
|
|
2449
|
-
"""void rlBindImageTexture(unsigned int, unsigned int,
|
|
2493
|
+
def rl_bind_image_texture(unsignedint_0: int,unsignedint_1: int,int_2: int,_Bool_3: bool,) -> None:
|
|
2494
|
+
"""void rlBindImageTexture(unsigned int, unsigned int, int, _Bool);
|
|
2450
2495
|
|
|
2451
2496
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2452
2497
|
...
|
|
@@ -2500,8 +2545,13 @@ def rl_compute_shader_dispatch(unsignedint_0: int,unsignedint_1: int,unsignedint
|
|
|
2500
2545
|
|
|
2501
2546
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2502
2547
|
...
|
|
2503
|
-
def
|
|
2504
|
-
"""void
|
|
2548
|
+
def rl_copy_shader_buffer(unsignedint_0: int,unsignedint_1: int,unsignedint_2: int,unsignedint_3: int,unsignedint_4: int,) -> None:
|
|
2549
|
+
"""void rlCopyShaderBuffer(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
|
|
2550
|
+
|
|
2551
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2552
|
+
...
|
|
2553
|
+
def rl_cubemap_parameters(unsignedint_0: int,int_1: int,int_2: int,) -> None:
|
|
2554
|
+
"""void rlCubemapParameters(unsigned int, int, int);
|
|
2505
2555
|
|
|
2506
2556
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2507
2557
|
...
|
|
@@ -2781,7 +2831,7 @@ def rl_get_pixel_format_name(unsignedint_0: int,) -> str:
|
|
|
2781
2831
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2782
2832
|
...
|
|
2783
2833
|
def rl_get_shader_buffer_size(unsignedint_0: int,) -> int:
|
|
2784
|
-
"""unsigned
|
|
2834
|
+
"""unsigned int rlGetShaderBufferSize(unsigned int);
|
|
2785
2835
|
|
|
2786
2836
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2787
2837
|
...
|
|
@@ -2845,8 +2895,8 @@ def rl_load_render_batch(int_0: int,int_1: int,) -> rlRenderBatch:
|
|
|
2845
2895
|
|
|
2846
2896
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2847
2897
|
...
|
|
2848
|
-
def rl_load_shader_buffer(
|
|
2849
|
-
"""unsigned int rlLoadShaderBuffer(unsigned
|
|
2898
|
+
def rl_load_shader_buffer(unsignedint_0: int,void_pointer_1: Any,int_2: int,) -> int:
|
|
2899
|
+
"""unsigned int rlLoadShaderBuffer(unsigned int, void *, int);
|
|
2850
2900
|
|
|
2851
2901
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2852
2902
|
...
|
|
@@ -2925,8 +2975,8 @@ def rl_read_screen_pixels(int_0: int,int_1: int,) -> str:
|
|
|
2925
2975
|
|
|
2926
2976
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2927
2977
|
...
|
|
2928
|
-
def
|
|
2929
|
-
"""void
|
|
2978
|
+
def rl_read_shader_buffer(unsignedint_0: int,void_pointer_1: Any,unsignedint_2: int,unsignedint_3: int,) -> None:
|
|
2979
|
+
"""void rlReadShaderBuffer(unsigned int, void *, unsigned int, unsigned int);
|
|
2930
2980
|
|
|
2931
2981
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2932
2982
|
...
|
|
@@ -2953,11 +3003,21 @@ CFFI C function from raylib._raylib_cffi.lib"""
|
|
|
2953
3003
|
def rl_set_blend_factors(int_0: int,int_1: int,int_2: int,) -> None:
|
|
2954
3004
|
"""void rlSetBlendFactors(int, int, int);
|
|
2955
3005
|
|
|
3006
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
3007
|
+
...
|
|
3008
|
+
def rl_set_blend_factors_separate(int_0: int,int_1: int,int_2: int,int_3: int,int_4: int,int_5: int,) -> None:
|
|
3009
|
+
"""void rlSetBlendFactorsSeparate(int, int, int, int, int, int);
|
|
3010
|
+
|
|
2956
3011
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2957
3012
|
...
|
|
2958
3013
|
def rl_set_blend_mode(int_0: int,) -> None:
|
|
2959
3014
|
"""void rlSetBlendMode(int);
|
|
2960
3015
|
|
|
3016
|
+
CFFI C function from raylib._raylib_cffi.lib"""
|
|
3017
|
+
...
|
|
3018
|
+
def rl_set_cull_face(int_0: int,) -> None:
|
|
3019
|
+
"""void rlSetCullFace(int);
|
|
3020
|
+
|
|
2961
3021
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
2962
3022
|
...
|
|
2963
3023
|
def rl_set_framebuffer_height(int_0: int,) -> None:
|
|
@@ -3090,8 +3150,8 @@ def rl_unload_vertex_buffer(unsignedint_0: int,) -> None:
|
|
|
3090
3150
|
|
|
3091
3151
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
3092
3152
|
...
|
|
3093
|
-
def
|
|
3094
|
-
"""void
|
|
3153
|
+
def rl_update_shader_buffer(unsignedint_0: int,void_pointer_1: Any,unsignedint_2: int,unsignedint_3: int,) -> None:
|
|
3154
|
+
"""void rlUpdateShaderBuffer(unsigned int, void *, unsigned int, unsigned int);
|
|
3095
3155
|
|
|
3096
3156
|
CFFI C function from raylib._raylib_cffi.lib"""
|
|
3097
3157
|
...
|
|
@@ -3835,6 +3895,7 @@ class BlendMode(IntEnum):
|
|
|
3835
3895
|
BLEND_SUBTRACT_COLORS = 4
|
|
3836
3896
|
BLEND_ALPHA_PREMULTIPLY = 5
|
|
3837
3897
|
BLEND_CUSTOM = 6
|
|
3898
|
+
BLEND_CUSTOM_SEPARATE = 7
|
|
3838
3899
|
|
|
3839
3900
|
class Gesture(IntEnum):
|
|
3840
3901
|
GESTURE_NONE = 0
|
|
@@ -3950,6 +4011,9 @@ class GuiDropdownBoxProperty(IntEnum):
|
|
|
3950
4011
|
class GuiTextBoxProperty(IntEnum):
|
|
3951
4012
|
TEXT_INNER_PADDING = 16
|
|
3952
4013
|
TEXT_LINES_SPACING = 17
|
|
4014
|
+
TEXT_ALIGNMENT_VERTICAL = 18
|
|
4015
|
+
TEXT_MULTILINE = 19
|
|
4016
|
+
TEXT_WRAP_MODE = 20
|
|
3953
4017
|
|
|
3954
4018
|
class GuiSpinnerProperty(IntEnum):
|
|
3955
4019
|
SPIN_BUTTON_WIDTH = 16
|
|
@@ -4175,19 +4239,19 @@ class GuiIconName(IntEnum):
|
|
|
4175
4239
|
ICON_FILE_NEW = 203
|
|
4176
4240
|
ICON_FOLDER_ADD = 204
|
|
4177
4241
|
ICON_ALARM = 205
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4242
|
+
ICON_CPU = 206
|
|
4243
|
+
ICON_ROM = 207
|
|
4244
|
+
ICON_STEP_OVER = 208
|
|
4245
|
+
ICON_STEP_INTO = 209
|
|
4246
|
+
ICON_STEP_OUT = 210
|
|
4247
|
+
ICON_RESTART = 211
|
|
4248
|
+
ICON_BREAKPOINT_ON = 212
|
|
4249
|
+
ICON_BREAKPOINT_OFF = 213
|
|
4250
|
+
ICON_BURGER_MENU = 214
|
|
4251
|
+
ICON_CASE_SENSITIVE = 215
|
|
4252
|
+
ICON_REG_EXP = 216
|
|
4253
|
+
ICON_FOLDER = 217
|
|
4254
|
+
ICON_FILE = 218
|
|
4191
4255
|
ICON_219 = 219
|
|
4192
4256
|
ICON_220 = 220
|
|
4193
4257
|
ICON_221 = 221
|