sapp_android_get_native_activity |
Android: get native activity handle |
sapp_cancel_quit |
cancel a pending quit (when SAPP_EVENTTYPE_QUIT_REQUESTED has been received) |
sapp_color_format |
get default framebuffer color pixel format |
sapp_consume_event |
call from inside event callback to consume the current event (don't forward to platform) |
sapp_d3d11_get_depth_stencil_view |
D3D11: get pointer to ID3D11DepthStencilView |
sapp_d3d11_get_device |
D3D11: get pointer to ID3D11Device object |
sapp_d3d11_get_device_context |
D3D11: get pointer to ID3D11DeviceContext object |
sapp_d3d11_get_render_target_view |
D3D11: get pointer to ID3D11RenderTargetView object |
sapp_depth_format |
get default framebuffer depth pixel format |
sapp_dpi_scale |
Returns the dpi scaling factor (window pixels to framebuffer pixels) |
sapp_frame_count |
get the current frame counter (for comparison with sapp_event.frame_count) |
sapp_get_clipboard_string |
read string from clipboard (usually during SAPP_EVENTTYPE_CLIPBOARD_PASTED) |
sapp_get_dropped_file_path |
gets the dropped file paths |
sapp_get_num_dropped_files |
gets the total number of dropped files (after an SAPP_EVENTTYPE_FILES_DROPPED event) |
sapp_gles2 |
GL: return true when GLES2 fallback is active (to detect fallback from GLES3) |
sapp_height |
returns the current framebuffer height in pixels |
sapp_high_dpi |
Returns true when high_dpi was requested and actually running in a high-dpi scenario |
sapp_html5_ask_leave_site |
HTML5: enable or disable the hardwired "Leave Site?" dialog box |
sapp_html5_fetch_dropped_file |
HTML5: asynchronously load the content of a dropped file |
sapp_html5_get_dropped_file_size |
HTML5: get byte size of a dropped file |
sapp_ios_get_window |
iOS: get bridged pointer to iOS UIWindow |
sapp_is_fullscreen |
query fullscreen mode |
sapp_isvalid |
Returns true after sokol-app has been initialized |
sapp_keyboard_shown |
return true if the mobile device onscreen keyboard is currently shown |
sapp_lock_mouse |
enable/disable mouse-pointer-lock mode |
sapp_macos_get_window |
macOS: get bridged pointer to macOS NSWindow |
sapp_metal_get_device |
Metal: get bridged pointer to Metal device object |
sapp_metal_get_drawable |
Metal: get bridged pointer to current drawable |
sapp_metal_get_renderpass_descriptor |
Metal: get bridged pointer to this frame's renderpass descriptor |
sapp_mouse_locked |
return true if in mouse-pointer-lock mode (this may toggle a few frames later) |
sapp_mouse_shown |
show or hide the mouse cursor |
sapp_query_desc |
return a copy of the sapp_desc structure |
sapp_quit |
intiate a "hard quit" (quit application without sending SAPP_EVENTTYPE_QUIT_REQUSTED) |
sapp_request_quit |
initiate a "soft quit" (sends SAPP_EVENTTYPE_QUIT_REQUESTED) |
sapp_run |
special run-function for SOKOL_NO_ENTRY (in standard mode this is an empty stub) |
sapp_sample_count |
get default framebuffer sample count |
sapp_set_clipboard_string |
write string into clipboard |
sapp_set_window_title |
set the window title (only on desktop platforms) |
sapp_sgcontext |
|
sapp_show_keyboard |
show or hide the mobile device onscreen keyboard |
sapp_show_mouse |
show or hide the mouse cursor |
sapp_toggle_fullscreen |
toggle fullscreen mode |
sapp_userdata |
return the userdata pointer optionally provided in sapp_desc |
sapp_wgpu_get_depth_stencil_view |
WebGPU: get swapchain's WGPUTextureView for the depth-stencil surface |
sapp_wgpu_get_device |
WebGPU: get WGPUDevice handle |
sapp_wgpu_get_render_view |
WebGPU: get swapchain's WGPUTextureView handle for rendering |
sapp_wgpu_get_resolve_view |
WebGPU: get swapchain's MSAA-resolve WGPUTextureView (may return null) |
sapp_width |
Returns the current framebuffer width in pixels |
sapp_win32_get_hwnd |
Win32: get the HWND window handle |
sargs_boolean |
return true if key's value is "true", "yes" or "on" |
sargs_equals |
return true if val arg matches the value associated with key |
sargs_exists |
test if an argument exists by key name |
sargs_find |
get index of arg by key name, return -1 if not exists |
sargs_isvalid |
true between sargs_setup() and sargs_shutdown() |
sargs_key_at |
get key name of argument at index, or empty string |
sargs_num_args |
get number of parsed arguments |
sargs_setup |
setup sokol-args |
sargs_shutdown |
shutdown sokol-args |
sargs_value |
get value by key name, return empty string if key doesn't exist |
sargs_value_at |
get value string of argument at index, or empty string |
sargs_value_def |
get value by key name, return provided default if key doesn't exist |
saudio_buffer_frames |
return actual backend buffer size in number of frames |
saudio_channels |
actual number of channels |
saudio_expect |
get current number of frames to fill packet queue |
saudio_isvalid |
true after setup if audio backend was successfully initialized |
saudio_push |
push sample frames from main thread, returns number of frames actually pushed |
saudio_query_desc |
return a copy of the original saudio_desc struct |
saudio_sample_rate |
actual sample rate |
saudio_setup |
setup sokol-audio |
saudio_shutdown |
shutdown sokol-audio |
saudio_userdata |
return the saudio_desc.user_data pointer |
sfetch_bind_buffer |
bind a data buffer to a request (request must not currently have a buffer bound, must be called from response callback |
sfetch_cancel |
cancel a request that's in flight (will call response callback with .cancelled + .finished) |
sfetch_continue |
continue a paused request |
sfetch_desc |
get the desc struct that was passed to sfetch_setup() |
sfetch_dowork |
do per-frame work, moves requests into and out of IO threads, and invokes response-callbacks |
sfetch_handle_valid |
return true if a handle is valid and the request is alive |
sfetch_max_path |
return the value of the SFETCH_MAX_PATH implementation config value |
sfetch_max_userdata_bytes |
return the max userdata size in number of bytes (SFETCH_MAX_USERDATA_UINT64 * sizeof(uint64_t)) |
sfetch_pause |
pause a request (will call response callback each frame with .paused) |
sfetch_send |
send a fetch-request, get handle to request back |
sfetch_setup |
setup sokol-fetch (can be called on multiple threads) |
sfetch_shutdown |
discard a sokol-fetch context |
sfetch_unbind_buffer |
clear the 'buffer binding' of a request, returns previous buffer pointer (can be 0), must be called from response callback |
sfetch_valid |
return true if sokol-fetch has been setup |
sg_activate_context |
|
sg_alloc_buffer |
|
sg_alloc_image |
|
sg_alloc_pass |
|
sg_alloc_pipeline |
|
sg_alloc_shader |
|
sg_append_buffer |
|
sg_apply_bindings |
|
sg_apply_pipeline |
|
sg_apply_scissor_rect |
|
sg_apply_uniforms |
|
sg_apply_viewport |
|
sg_begin_default_pass |
|
sg_begin_pass |
|
sg_commit |
|
sg_d3d11_device |
|
sg_dealloc_buffer |
|
sg_dealloc_image |
|
sg_dealloc_pass |
|
sg_dealloc_pipeline |
|
sg_dealloc_shader |
|
sg_destroy_buffer |
|
sg_destroy_image |
|
sg_destroy_pass |
|
sg_destroy_pipeline |
|
sg_destroy_shader |
|
sg_discard_context |
|
sg_draw |
|
sg_end_pass |
|
sg_fail_buffer |
|
sg_fail_image |
|
sg_fail_pass |
|
sg_fail_pipeline |
|
sg_fail_shader |
|
sg_init_buffer |
|
sg_init_image |
|
sg_init_pass |
|
sg_init_pipeline |
|
sg_init_shader |
|
sg_install_trace_hooks |
|
sg_isvalid |
|
sg_make_buffer |
|
sg_make_image |
|
sg_make_pass |
|
sg_make_pipeline |
|
sg_make_shader |
|
sg_mtl_device |
|
sg_mtl_render_command_encoder |
|
sg_pop_debug_group |
|
sg_push_debug_group |
|
sg_query_backend |
|
sg_query_buffer_defaults |
|
sg_query_buffer_info |
|
sg_query_buffer_overflow |
|
sg_query_buffer_state |
|
sg_query_desc |
|
sg_query_features |
|
sg_query_image_defaults |
|
sg_query_image_info |
|
sg_query_image_state |
|
sg_query_limits |
|
sg_query_pass_defaults |
|
sg_query_pass_info |
|
sg_query_pass_state |
|
sg_query_pipeline_defaults |
|
sg_query_pipeline_info |
|
sg_query_pipeline_state |
|
sg_query_pixelformat |
|
sg_query_shader_defaults |
|
sg_query_shader_info |
|
sg_query_shader_state |
|
sg_reset_state_cache |
|
sg_setup |
|
sg_setup_context |
|
sg_shutdown |
|
sg_uninit_buffer |
|
sg_uninit_image |
|
sg_uninit_pass |
|
sg_uninit_pipeline |
|
sg_uninit_shader |
|
sg_update_buffer |
|
sg_update_image |
|
sokol_main |
User-provided functions |
sshape_box_sizes |
|
sshape_buffer_layout_desc |
|
sshape_build_box |
|
sshape_build_cylinder |
|
sshape_build_plane |
|
sshape_build_sphere |
|
sshape_build_torus |
|
sshape_color_3b |
|
sshape_color_3f |
|
sshape_color_4b |
|
sshape_color_4f |
|
sshape_color_attr_desc |
|
sshape_cylinder_sizes |
|
sshape_element_range |
|
sshape_index_buffer_desc |
|
sshape_mat4 |
|
sshape_mat4_transpose |
|
sshape_normal_attr_desc |
|
sshape_plane_sizes |
|
sshape_position_attr_desc |
|
sshape_sphere_sizes |
|
sshape_texcoord_attr_desc |
|
sshape_torus_sizes |
|
sshape_vertex_buffer_desc |
|
stm_diff |
|
stm_laptime |
|
stm_ms |
|
stm_now |
|
stm_ns |
|
stm_round_to_common_refresh_rate |
|
stm_sec |
|
stm_setup |
|
stm_since |
|
stm_us |
|