@@ -341,6 +341,9 @@ def draw_text(text: str,posX: int,posY: int,fontSize: int,color: Color,) -> None
341
341
def draw_text_codepoint (font : Font ,codepoint : int ,position : Vector2 ,fontSize : float ,tint : Color ,) -> None :
342
342
"""Draw one character (codepoint)"""
343
343
...
344
+ def draw_text_codepoints (font : Font ,codepoints : Any ,count : int ,position : Vector2 ,fontSize : float ,spacing : float ,tint : Color ,) -> None :
345
+ """Draw multiple character (codepoint)"""
346
+ ...
344
347
def draw_text_ex (font : Font ,text : str ,position : Vector2 ,fontSize : float ,spacing : float ,tint : Color ,) -> None :
345
348
"""Draw text using font and additional parameters"""
346
349
...
@@ -422,6 +425,9 @@ def end_texture_mode() -> None:
422
425
def end_vr_stereo_mode () -> None :
423
426
"""End stereo rendering (requires VR simulator)"""
424
427
...
428
+ def export_font_as_code (font : Font ,fileName : str ,) -> bool :
429
+ """Export font as code file, returns true on success"""
430
+ ...
425
431
def export_image (image : Image ,fileName : str ,) -> bool :
426
432
"""Export image data to file, returns true on success"""
427
433
...
@@ -509,6 +515,9 @@ def gen_mesh_torus(radius: float,size: float,radSeg: int,sides: int,) -> Mesh:
509
515
def gen_texture_mipmaps (texture : Any ,) -> None :
510
516
"""Generate GPU mipmaps for a texture"""
511
517
...
518
+ def get_application_directory () -> str :
519
+ """Get the directory if the running application (uses static string)"""
520
+ ...
512
521
def get_camera_matrix (camera : Camera3D ,) -> Matrix :
513
522
"""Get camera transform matrix (view matrix)"""
514
523
...
@@ -551,6 +560,9 @@ def get_fps() -> int:
551
560
def get_file_extension (fileName : str ,) -> str :
552
561
"""Get pointer to extension for a filename string (includes dot: '.png')"""
553
562
...
563
+ def get_file_length (fileName : str ,) -> int :
564
+ """Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)"""
565
+ ...
554
566
def get_file_mod_time (fileName : str ,) -> int :
555
567
"""Get file modification time (last write time)"""
556
568
...
@@ -723,6 +735,12 @@ def get_ray_collision_sphere(ray: Ray,center: Vector3,radius: float,) -> RayColl
723
735
def get_ray_collision_triangle (ray : Ray ,p1 : Vector3 ,p2 : Vector3 ,p3 : Vector3 ,) -> RayCollision :
724
736
"""Get collision info between ray and triangle"""
725
737
...
738
+ def get_render_height () -> int :
739
+ """Get current render height (it considers HiDPI)"""
740
+ ...
741
+ def get_render_width () -> int :
742
+ """Get current render width (it considers HiDPI)"""
743
+ ...
726
744
def get_screen_height () -> int :
727
745
"""Get current screen height"""
728
746
...
@@ -1290,7 +1308,7 @@ def load_file_data(fileName: str,bytesRead: Any,) -> str:
1290
1308
"""Load file data as byte array (read)"""
1291
1309
...
1292
1310
def load_file_text (fileName : str ,) -> str :
1293
- """Load text data from file (read), returns a ' 0' terminated string"""
1311
+ """Load text data from file (read), returns a '\ 0 ' terminated string"""
1294
1312
...
1295
1313
def load_font (fileName : str ,) -> Font :
1296
1314
"""Load font from file into GPU memory (VRAM)"""
@@ -1299,7 +1317,7 @@ def load_font_data(fileData: str,dataSize: int,fontSize: int,fontChars: Any,glyp
1299
1317
"""Load font data for further use"""
1300
1318
...
1301
1319
def load_font_ex (fileName : str ,fontSize : int ,fontChars : Any ,glyphCount : int ,) -> Font :
1302
- """Load font from file with extended parameters"""
1320
+ """Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set """
1303
1321
...
1304
1322
def load_font_from_image (image : Image ,key : Color ,firstChar : int ,) -> Font :
1305
1323
"""Load font from Image (XNA style)"""
@@ -1389,7 +1407,7 @@ def load_wave_from_memory(fileType: str,fileData: str,dataSize: int,) -> Wave:
1389
1407
"""Load wave from memory buffer, fileType refers to extension: i.e. '.wav'"""
1390
1408
...
1391
1409
def load_wave_samples (wave : Wave ,) -> Any :
1392
- """Load samples data from wave as a floats array"""
1410
+ """Load samples data from wave as a 32bit float data array"""
1393
1411
...
1394
1412
def maximize_window () -> None :
1395
1413
"""Set window state: maximized, if resizable (only PLATFORM_DESKTOP)"""
@@ -1475,7 +1493,7 @@ def save_file_data(fileName: str,data: Any,bytesToWrite: int,) -> bool:
1475
1493
"""Save data to file from byte array (write), returns true on success"""
1476
1494
...
1477
1495
def save_file_text (fileName : str ,text : str ,) -> bool :
1478
- """Save text data to file (write), string must be ' 0' terminated, returns true on success"""
1496
+ """Save text data to file (write), string must be '\ 0 ' terminated, returns true on success"""
1479
1497
...
1480
1498
def save_storage_value (position : int ,value : int ,) -> bool :
1481
1499
"""Save integer value to storage file (to defined position), returns true on success"""
@@ -1486,6 +1504,9 @@ def seek_music_stream(music: Music,position: float,) -> None:
1486
1504
def set_audio_stream_buffer_size_default (size : int ,) -> None :
1487
1505
"""Default size for new audio streams"""
1488
1506
...
1507
+ def set_audio_stream_pan (stream : AudioStream ,pan : float ,) -> None :
1508
+ """Set pan for audio stream (0.5 is centered)"""
1509
+ ...
1489
1510
def set_audio_stream_pitch (stream : AudioStream ,pitch : float ,) -> None :
1490
1511
"""Set pitch for audio stream (1.0 is base level)"""
1491
1512
...
@@ -1549,6 +1570,9 @@ def set_mouse_position(x: int,y: int,) -> None:
1549
1570
def set_mouse_scale (scaleX : float ,scaleY : float ,) -> None :
1550
1571
"""Set mouse scaling"""
1551
1572
...
1573
+ def set_music_pan (music : Music ,pan : float ,) -> None :
1574
+ """Set pan for a music (0.5 is center)"""
1575
+ ...
1552
1576
def set_music_pitch (music : Music ,pitch : float ,) -> None :
1553
1577
"""Set pitch for a music (1.0 is base level)"""
1554
1578
...
@@ -1597,6 +1621,9 @@ def set_shader_value_v(shader: Shader,locIndex: int,value: Any,uniformType: int,
1597
1621
def set_shapes_texture (texture : Texture ,source : Rectangle ,) -> None :
1598
1622
"""Set texture and rectangle to be used on shapes drawing"""
1599
1623
...
1624
+ def set_sound_pan (sound : Sound ,pan : float ,) -> None :
1625
+ """Set pan for a sound (0.5 is center)"""
1626
+ ...
1600
1627
def set_sound_pitch (sound : Sound ,pitch : float ,) -> None :
1601
1628
"""Set pitch for a sound (1.0 is base level)"""
1602
1629
...
@@ -1627,14 +1654,17 @@ def set_window_min_size(width: int,height: int,) -> None:
1627
1654
def set_window_monitor (monitor : int ,) -> None :
1628
1655
"""Set monitor for the current window (fullscreen mode)"""
1629
1656
...
1657
+ def set_window_opacity (opacity : float ,) -> None :
1658
+ """Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)"""
1659
+ ...
1630
1660
def set_window_position (x : int ,y : int ,) -> None :
1631
1661
"""Set window position on screen (only PLATFORM_DESKTOP)"""
1632
1662
...
1633
1663
def set_window_size (width : int ,height : int ,) -> None :
1634
1664
"""Set window dimensions"""
1635
1665
...
1636
1666
def set_window_state (flags : int ,) -> None :
1637
- """Set window configuration state using flags"""
1667
+ """Set window configuration state using flags (only PLATFORM_DESKTOP) """
1638
1668
...
1639
1669
def set_window_title (title : str ,) -> None :
1640
1670
"""Set title for window (only PLATFORM_DESKTOP)"""
@@ -1685,7 +1715,7 @@ def text_join(textList: str,count: int,delimiter: str,) -> str:
1685
1715
"""Join text strings with delimiter"""
1686
1716
...
1687
1717
def text_length (text : str ,) -> int :
1688
- """Get text length, checks for ' 0' ending"""
1718
+ """Get text length, checks for '\ 0 ' ending"""
1689
1719
...
1690
1720
def text_replace (text : str ,replace : str ,by : str ,) -> str :
1691
1721
"""Replace text string (WARNING: memory must be freed!)"""
@@ -1727,7 +1757,7 @@ def unload_file_text(text: str,) -> None:
1727
1757
"""Unload file text data allocated by LoadFileText()"""
1728
1758
...
1729
1759
def unload_font (font : Font ,) -> None :
1730
- """Unload Font from GPU memory (VRAM)"""
1760
+ """Unload font from GPU memory (VRAM)"""
1731
1761
...
1732
1762
def unload_font_data (chars : Any ,glyphCount : int ,) -> None :
1733
1763
"""Unload font chars info data (RAM)"""
0 commit comments