Pixels Graphics Lib
Pixel buffer graphics and GUI library. It helps simplify window setup and creation, and event looping. It uses buffer graphics lib for drawing to the buffer.
Usage
Cargo
In your Cargo.toml file add
= "0.22.0"
Code
You can use scenes using run_scenes (requires default feature scenes):
// The scene name is the id used so the switcher knows which one to create
// After a scene is finished it can return values to it's parent using scene result
or a more low level with run
//Check `src/scenes.rs` for examples of implementing held keys, etc
Features
Default features:
window_prefs,sound,serde,scenes
window_prefs
Save and restore window position and size
To use this the impl System must override System::window_prefs()
scenes
Enables Scene and run_scenes
Includes window_prefs
controller
- Adds gamepad support
- Adds gamepad state to
Scene::update,Scene::render
controller_xinput
As above but using xinput, windows only
sound
Play music or sound effects
serde
Adds Serialize and Deserialize to most structs and enums
images
Loading and displaying of PNGs, JPEGs, BMPs
file_dialogs
Built in file selection dialogs, not recommended, use rfd
mint
Enables buffer-graphics-lib/mint,
see Buffer graphics readme
notosan
Enables buffer-graphics-lib/notosans,
see Buffer graphics readme
embedded
Enables buffer-graphics-lib/embedded,
see Buffer graphics readme
Projects
Retro Games
A few retro games
Wordle
A wordle clone
ICI Image editor
Editor for IndexedImage, ICI files
USFX Tester
GUI for USFX
Fontpad
Program used to create fonts for Buffer graphics