@@ -341,6 +341,9 @@ def draw_text(text: str,posX: int,posY: int,fontSize: int,color: Color,) -> None
341341def draw_text_codepoint (font : Font ,codepoint : int ,position : Vector2 ,fontSize : float ,tint : Color ,) -> None :
342342 """Draw one character (codepoint)"""
343343 ...
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+ ...
344347def draw_text_ex (font : Font ,text : str ,position : Vector2 ,fontSize : float ,spacing : float ,tint : Color ,) -> None :
345348 """Draw text using font and additional parameters"""
346349 ...
@@ -422,6 +425,9 @@ def end_texture_mode() -> None:
422425def end_vr_stereo_mode () -> None :
423426 """End stereo rendering (requires VR simulator)"""
424427 ...
428+ def export_font_as_code (font : Font ,fileName : str ,) -> bool :
429+ """Export font as code file, returns true on success"""
430+ ...
425431def export_image (image : Image ,fileName : str ,) -> bool :
426432 """Export image data to file, returns true on success"""
427433 ...
@@ -509,6 +515,9 @@ def gen_mesh_torus(radius: float,size: float,radSeg: int,sides: int,) -> Mesh:
509515def gen_texture_mipmaps (texture : Any ,) -> None :
510516 """Generate GPU mipmaps for a texture"""
511517 ...
518+ def get_application_directory () -> str :
519+ """Get the directory if the running application (uses static string)"""
520+ ...
512521def get_camera_matrix (camera : Camera3D ,) -> Matrix :
513522 """Get camera transform matrix (view matrix)"""
514523 ...
@@ -551,6 +560,9 @@ def get_fps() -> int:
551560def get_file_extension (fileName : str ,) -> str :
552561 """Get pointer to extension for a filename string (includes dot: '.png')"""
553562 ...
563+ def get_file_length (fileName : str ,) -> int :
564+ """Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)"""
565+ ...
554566def get_file_mod_time (fileName : str ,) -> int :
555567 """Get file modification time (last write time)"""
556568 ...
@@ -723,6 +735,12 @@ def get_ray_collision_sphere(ray: Ray,center: Vector3,radius: float,) -> RayColl
723735def get_ray_collision_triangle (ray : Ray ,p1 : Vector3 ,p2 : Vector3 ,p3 : Vector3 ,) -> RayCollision :
724736 """Get collision info between ray and triangle"""
725737 ...
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+ ...
726744def get_screen_height () -> int :
727745 """Get current screen height"""
728746 ...
@@ -1290,7 +1308,7 @@ def load_file_data(fileName: str,bytesRead: Any,) -> str:
12901308 """Load file data as byte array (read)"""
12911309 ...
12921310def 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"""
12941312 ...
12951313def load_font (fileName : str ,) -> Font :
12961314 """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
12991317 """Load font data for further use"""
13001318 ...
13011319def 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 """
13031321 ...
13041322def load_font_from_image (image : Image ,key : Color ,firstChar : int ,) -> Font :
13051323 """Load font from Image (XNA style)"""
@@ -1389,7 +1407,7 @@ def load_wave_from_memory(fileType: str,fileData: str,dataSize: int,) -> Wave:
13891407 """Load wave from memory buffer, fileType refers to extension: i.e. '.wav'"""
13901408 ...
13911409def 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"""
13931411 ...
13941412def maximize_window () -> None :
13951413 """Set window state: maximized, if resizable (only PLATFORM_DESKTOP)"""
@@ -1475,7 +1493,7 @@ def save_file_data(fileName: str,data: Any,bytesToWrite: int,) -> bool:
14751493 """Save data to file from byte array (write), returns true on success"""
14761494 ...
14771495def 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"""
14791497 ...
14801498def save_storage_value (position : int ,value : int ,) -> bool :
14811499 """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:
14861504def set_audio_stream_buffer_size_default (size : int ,) -> None :
14871505 """Default size for new audio streams"""
14881506 ...
1507+ def set_audio_stream_pan (stream : AudioStream ,pan : float ,) -> None :
1508+ """Set pan for audio stream (0.5 is centered)"""
1509+ ...
14891510def set_audio_stream_pitch (stream : AudioStream ,pitch : float ,) -> None :
14901511 """Set pitch for audio stream (1.0 is base level)"""
14911512 ...
@@ -1549,6 +1570,9 @@ def set_mouse_position(x: int,y: int,) -> None:
15491570def set_mouse_scale (scaleX : float ,scaleY : float ,) -> None :
15501571 """Set mouse scaling"""
15511572 ...
1573+ def set_music_pan (music : Music ,pan : float ,) -> None :
1574+ """Set pan for a music (0.5 is center)"""
1575+ ...
15521576def set_music_pitch (music : Music ,pitch : float ,) -> None :
15531577 """Set pitch for a music (1.0 is base level)"""
15541578 ...
@@ -1597,6 +1621,9 @@ def set_shader_value_v(shader: Shader,locIndex: int,value: Any,uniformType: int,
15971621def set_shapes_texture (texture : Texture ,source : Rectangle ,) -> None :
15981622 """Set texture and rectangle to be used on shapes drawing"""
15991623 ...
1624+ def set_sound_pan (sound : Sound ,pan : float ,) -> None :
1625+ """Set pan for a sound (0.5 is center)"""
1626+ ...
16001627def set_sound_pitch (sound : Sound ,pitch : float ,) -> None :
16011628 """Set pitch for a sound (1.0 is base level)"""
16021629 ...
@@ -1627,14 +1654,17 @@ def set_window_min_size(width: int,height: int,) -> None:
16271654def set_window_monitor (monitor : int ,) -> None :
16281655 """Set monitor for the current window (fullscreen mode)"""
16291656 ...
1657+ def set_window_opacity (opacity : float ,) -> None :
1658+ """Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)"""
1659+ ...
16301660def set_window_position (x : int ,y : int ,) -> None :
16311661 """Set window position on screen (only PLATFORM_DESKTOP)"""
16321662 ...
16331663def set_window_size (width : int ,height : int ,) -> None :
16341664 """Set window dimensions"""
16351665 ...
16361666def set_window_state (flags : int ,) -> None :
1637- """Set window configuration state using flags"""
1667+ """Set window configuration state using flags (only PLATFORM_DESKTOP) """
16381668 ...
16391669def set_window_title (title : str ,) -> None :
16401670 """Set title for window (only PLATFORM_DESKTOP)"""
@@ -1685,7 +1715,7 @@ def text_join(textList: str,count: int,delimiter: str,) -> str:
16851715 """Join text strings with delimiter"""
16861716 ...
16871717def text_length (text : str ,) -> int :
1688- """Get text length, checks for ' 0' ending"""
1718+ """Get text length, checks for '\ 0 ' ending"""
16891719 ...
16901720def text_replace (text : str ,replace : str ,by : str ,) -> str :
16911721 """Replace text string (WARNING: memory must be freed!)"""
@@ -1727,7 +1757,7 @@ def unload_file_text(text: str,) -> None:
17271757 """Unload file text data allocated by LoadFileText()"""
17281758 ...
17291759def unload_font (font : Font ,) -> None :
1730- """Unload Font from GPU memory (VRAM)"""
1760+ """Unload font from GPU memory (VRAM)"""
17311761 ...
17321762def unload_font_data (chars : Any ,glyphCount : int ,) -> None :
17331763 """Unload font chars info data (RAM)"""
0 commit comments