Expand description
The context module contains functions and traits related to using the Context type.
Re-exports§
pub use winit;
Structs§
- Context
- A
Contextis an object that holds on to global resources. It basically tracks hardware state such as the screen, audio system, timers, and so on. Generally this type can not be shared/sent between threads and only oneContextcan exist at a time. Trying to create a second one will fail. It is fine to drop aContextand create a new one, but this will also close and re-open your game’s window. - Context
Builder - A builder object for creating a
Context.
Traits§
- Has
- Used to represent types that can provide a certain context type.
- HasMut
- Used to represent types that can provide a certain context type in a mutable form.
See also
Has<T>.
Functions§
- quit
Deprecated - Terminates the
ggez::event::run()loop without requesting aquit_event.Context.continuingis set tofalseand the loop breaks.