Module ffi

Source

Functions§

attach_audio_mixed_processor
Attach audio stream processor to the entire audio pipeline, receives the samples as ‘float’
attach_audio_stream_processor
Attach audio stream processor to stream, receives the samples as ‘float’
begin_drawing
Setup canvas (framebuffer) to start drawing
begin_texture_mode
Begin drawing to render texture
clear_background
Set background color (framebuffer clear color)
clear_window_state
Clear window configuration state flags
close_audio_device
Close the audio device and context
close_window
Close window and unload OpenGL context
detach_audio_mixed_processor
Detach audio stream processor from the entire audio pipeline
detach_audio_stream_processor
Detach audio stream processor from stream
disable_cursor
Disabled cursor (lock cursor)
disable_event_waiting
Disable waiting for events on end_drawing, automatic event polling
draw_circle_v
Draw a color-filled circle (Vector version)
draw_fps
Draw current FPS
draw_rectangle_lines
Draw rectangle outline
draw_rectangle_rec
Draw a color-filled rectangle
draw_text
Draw text (using default font)
draw_texture
Draw a Texture
draw_texture_ex
Draw a Texture with extended parameters
draw_texture_pro
Draw a part of a Texture defined by a Rectangle with ‘pro’ parameters
draw_texture_rec
Draw a part of a Texture defined by a Rectangle
draw_texture_v
Draw a Texture with position defined as Vector2
enable_cursor
Enables cursor (unlock cursor)
enable_event_waiting
Enable waiting for events on end_drawing, no automatic event polling
end_drawing
End canvas drawing and swap buffers (double buffering)
end_texture_mode
Ends drawing to render texture
export_wave
Export wave data to file, returns true on success
export_wave_as_code
Export wave sample data to code (.h), returns true on success
gen_texture_mipmaps
Generate GPU mipmaps for a texture
get_char_pressed
Get char pressed (unicode), call it multiple times for chars queued, return s0 when the queue is empty
get_clipboard_image
Get clipboard image content
get_clipboard_text
Get clipboard text content
get_current_monitor
Get current monitor where window is placed
get_fps
Get current FPS
get_frame_time
Get time in seconds for last frame drawn (delta time)
get_gamepad_axis_count
Get gamepad axis count for a gamepad
get_gamepad_axis_movement
Get axis movement value for a gamepad axis
get_gamepad_button_pressed
Get the last gamepad button pressed
get_gamepad_name
Get gamepad internal name id
get_gesture_detected
Get latest detected Gesture
get_gesture_drag_angle
Get Gesture drag angle
get_gesture_drag_vector
Get Gesture drag Vector2
get_gesture_hold_duration
Get Gesture hold time in seconds
get_gesture_pinch_angle
Get Gesture pinch angle
get_gesture_pinch_vector
Get Gesture pinch delta
get_key_pressed
Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
get_master_volume
Get master volume (listener)
get_monitor_count
Get number of connected monitors
get_monitor_height
Get specified monitor height (current video mode used by monitor)
get_monitor_name
Get the human-readable, UTF-8 encoded name of the specified monitor
get_monitor_physical_height
Get specified monitor physical height in millimetres
get_monitor_physical_width
Get specified monitor physical width in millimetres
get_monitor_position
Get specified monitor position
get_monitor_refresh_rate
Get specified monitor refresh rate
get_monitor_width
Get specified monitor width (current video mode used by monitor)
get_mouse_delta
Get mouse delta between frames
get_mouse_position
Get mouse position XY
get_mouse_wheel_move
Get mouse wheel movement for X or Y, whichever is larger
get_mouse_wheel_move_v
Get mouse wheel movement for both X or Y
get_mouse_x
Get mouse position X
get_mouse_y
Get mouse position Y
get_music_time_length
Get music time length (in seconds)
get_music_time_played
Get current music time played (in seconds)
get_render_height
Get current render height (it considers HiDPI)
get_render_width
Get current render width (it considers HiDPI)
get_screen_height
Get current screen height
get_screen_width
Get current screen width
get_time
Get elapsed time in seconds since InitWindow()
get_touch_point_count
Get number of touch points
get_touch_point_id
Get touch point identifier for given index
get_touch_position
Get touch position XY for a touch point index (relative to screen size)
get_touch_x
Get touch position X for touch point 0 (relative to screen size)
get_touch_y
Get touch position Y for touch point 0 (relative to screen size)
get_window_position
Get position XY on monitor
get_window_scale_dpi
Get window scale DPI factor
hide_cursor
Hides cursor
init_audio_device
Initialize audio device and context
init_window
Initialize window and OpenGL context
is_audio_device_ready
Check if audio device has been initialized successfully
is_audio_stream_playing
Check if audio stream is playing
is_audio_stream_processed
Check if any audio stream buffers requires refill
is_audio_stream_valid
Checks if an audio stream is valid (buffers initialized)
is_cursor_hidden
Check if cursor is not visible
is_cursor_on_screen
Check if cursor is on the screen
is_gamepad_available
Check if a gamepad is available
is_gamepad_button_down
Check if a gamepad button is being pressed
is_gamepad_button_pressed
Check if a gamepad button has been pressed once
is_gamepad_button_released
Check if a gamepad button has been released once
is_gamepad_button_up
Check if a gamepad button is NOT being pressed
is_gesture_detected
Check if a Gesture have been detected
is_key_down
Check if a key is being pressed
is_key_pressed
Check if a key has been pressed once
is_key_pressed_repeat
Check if a key has been pressed again
is_key_released
Check if a key has been released once
is_key_up
Check if a key is NOT being pressed
is_mouse_button_down
Check if a MouseButton is beening pressed
is_mouse_button_pressed
Check if a MouseButton has been pressed once
is_mouse_button_released
Check if a MouseButton has been released once
is_mouse_button_up
Check if a MouseButton is NOT being pressed
is_music_stream_playing
Checks if music is playing
is_music_valid
Checks if a music stream is valid (context and buffers initialized)
is_render_texture_valid
Check if a render texture is valid (loaded in GPU)
is_sound_playing
Check if a sound is currently playing
is_sound_valid
Checks if sound is valid (data loaded and buffers initialized)
is_texture_valid
Check if a texture is valid (loaded in GPU)
is_wave_valid
Checks if wave data is valid (data loaded and parameters)
is_window_focused
Check if window is currently focused
is_window_fullscreen
Check if window is currently fullscreen
is_window_hidden
Check if window is currently hidden
is_window_maximized
Check if window is currently maximized
is_window_minimized
Check if window is currently minimized
is_window_ready
Check if window has been initialized successfully
is_window_resized
Check if window has been resized last frame
is_window_state
Check if one specific window flag is enabled
load_audio_stream
Load audio stream (to stream raw audio pcm data)
load_music_stream
Load music stream from file
load_music_stream_from_memory
Load music stream from file
load_render_texture
Load texture for rendering (framebuffer)
load_sound
Load sound from file
load_sound_alias
Create a new sound that shares the same sample data as the source sound, does not own the sound data
load_sound_from_wave
Load sound from wave data
load_texture
Load texture from file into GPU memory (VRAM)
load_texture_from_image
Load texture from image data
load_wave
Load wave data from file
load_wave_from_memory
Load wave from memory buffer, file_type refers to extension: i.e. .wav
load_wave_samples
Load samples data from wave as a 32bit float data array
maximize_window
Set window state: maximized, if resizable
measure_text
Measure string width for default font
minimize_window
Set window state: minimized, if resizable
pause_audio_stream
Pause audio stream
pause_music_stream
Pause music playing
pause_sound
Pause a sound
play_audio_stream
Play audio stream
play_music_stream
Start music playing
play_sound
Play a sound
restore_window
Set window state: not minimized/maximized
resume_audio_stream
Resume audio stream
resume_music_stream
Resume playing paused music
resume_sound
Resume a paused sound
seek_music_stream
Seek music to a position (in seconds)
set_audio_stream_buffer_size_default
Default size for new audio streams
set_audio_stream_callback
Audio thread callback to request new data
set_audio_stream_pan
Set pan for audio stream (0.5 is centered)
set_audio_stream_pitch
Set pitch for audio stream (1.0 is base level)
set_audio_stream_volume
Set volume for audio stream (1.0 is max level)
set_clipboard_text
Set clipboard text content
set_config_flags
Setup init configuration flags
set_exit_key
Set a custom key to exit program (default is KeyboardKey::Escape)
set_gamepad_vibration
Set gamepad vibration for both motors (duration in seconds)
set_gestures_enabled
Enable a set of Gesture using flags
set_master_volume
Set master volume (listener)
set_mouse_cursor
Set mouse cursor
set_mouse_offset
Set mouse offset
set_mouse_position
Set mouse position XY
set_mouse_scale
Set mouse scaling
set_music_pan
Set pan for music (0.5 is center)
set_music_pitch
Set pitch for music (1.0 is base level)
set_music_volume
Set volume for music (1.0 is max level)
set_sound_pan
Set pan for a sound (0.5 is center)
set_sound_pitch
Set pitch for a sound (1.0 is base level)
set_sound_volume
Set volume for a sound (1.0 is max level)
set_target_fps
Set target FPS (maximum)
set_texture_filter
Set texture scaling filter mode
set_texture_wrap
Set texture wrapping mode
set_window_focused
Set window focused
set_window_icon
Set icon for window (single image, RGBA 32bit)
set_window_icons
Set icon for window (multiple images, RGBA 32bit)
set_window_max_size
Set window maximum dimensions (for ConfigFlag::WindowResizable)
set_window_min_size
Set window minimum dimensions (for ConfigFlag::WindowResizable)
set_window_monitor
Set monitor for the current window
set_window_opacity
Set window opacity [0.0..1.0]
set_window_position
Set window position on screen
set_window_size
Set window dimension
set_window_state
Set window configuration state using flags
set_window_title
Set title for window
show_cursor
Shows cursor
stop_audio_stream
Stop audio stream
stop_music_stream
Stop music playing
stop_sound
Stop playing a sound
toggle_borderless_windowed
Toggle window state: borderless windowed, resizes window to match monitor resolution
toggle_fullscreen
Toggle window state: fullscreen/windowed, resizes monitor to match window resolution
unload_music_stream
Unload music stream
unload_render_texture
Unload render texture from GPU memory (VRAM)
unload_sound
Unload sound
unload_sound_alias
Unload a sound alias (does not deallocate sample data)
unload_stream_valid
Unload audio stream and free memory
unload_texture
Unload texture from GPU memory (VRAM)
unload_wave
Unload wave data
unload_wave_samples
Unload samples data loaded with LoadWaveSamples()
update_music_stream
Updates buffers for music streaming
update_sound
Update sound buffer with new data
update_stream_valid
Update audio stream buffers with data
update_texture
Update GPU texture with new data
update_texture_rec
Update GPU texture rectangle with new data
wave_copy
Copy the wave to a new wave
wave_crop
Crop a wave to defined frames range
wave_format
Convert wave data to desired format
window_should_close
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)