Skip to main content

Module state

Module state 

Source
Expand description

Global state management for polyscope.

Structs§

Context
The global context containing all polyscope state.

Enums§

MaterialLoadRequest
A deferred request to load a material from disk.

Functions§

init_context
Initializes the global context.
is_initialized
Returns whether the context has been initialized.
shutdown_context
Shuts down the global context.
try_with_context
Try to access the global context for reading.
try_with_context_mut
Try to access the global context for writing.
with_context
Access the global context for reading.
with_context_mut
Access the global context for writing.

Type Aliases§

FileDropCallback
Callback type for file drop events.