Crate neuton

Source

Macros§

log
Macro for logging with different levels This macro uses the tracing crate for structured logging. It allows you to log messages at different levels (trace, debug, info, warn, error). Example usage: log!(info, "Your message here: {}", value);

Structs§

AppConfig
Configuration for the application window and rendering.
Application
Main application struct. Owns the SDL context, window, and user logic.
Canvas
Manages and owns a target (Surface or Window) and allows drawing in it.
Color
Keycode
SceneStack
Window
Represents the “shell” of a Window.

Enums§

Event
Different event types.
NeutonError
All errors that can occur in the engine.

Traits§

AppBehavior
Trait for user application logic.
Scene
Trait for scene management in the application. Implement this trait to define how your scene behaves when entered, exited, updated, on events and rendered.

Functions§

init_logger
Initializes the global logger for the engine.
keyboard_pressed

Type Aliases§

NeutonResult
Convenient result type for the engine.