Module ffi

Source

Functions§

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
disable_cursor
Disabled cursor (lock cursor)
disable_event_waiting
Disable waiting for events on end_drawing, automatic event polling
draw_fps
Draw current FPS
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
gen_texture_mipmaps
Generate GPU mipmaps for a texture
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_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_position
Get mouse position XY
get_mouse_x
Get mouse position X
get_mouse_y
Get mouse position Y
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_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_cursor_hidden
Check if cursor is not visible
is_cursor_on_screen
Check if cursor is on the screen
is_mouse_button_down
Check if a mouse button is beening pressed
is_render_texture_valid
Check if a render texture is valid (loaded in GPU)
is_texture_valid
Check if a texture is valid (loaded in GPU)
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_render_texture
Load texture for rendering (framebuffer)
load_texture
Load texture from file into GPU memory (VRAM)
load_texture_from_image
Load texture from image data
maximize_window
Set window state: maximized, if resizable
measure_text
Measure string width for default font
minimize_window
Set window state: minimized, if resizable
restore_window
Set window state: not minimized/maximized
set_clipboard_text
Set clipboard text content
set_config_flags
Setup init configuration flags
set_master_volume
Set master volume (listener)
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
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_render_texture
Unload render texture from GPU memory (VRAM)
unload_texture
Unload texture from GPU memory (VRAM)
update_texture
Update GPU texture with new data
update_texture_rec
Update GPU texture rectangle with new data
window_should_close
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)