Module pixels_graphics_lib::prelude
source · Re-exports
pub use crate::run;
pub use crate::setup;
pub use crate::GraphicsError;
pub use crate::MouseButton;
pub use crate::MouseData;
pub use crate::Options;
pub use crate::System;
pub use crate::WindowScaling;
pub use crate::dialogs::*;
pub use crate::scenes::*;
pub use crate::utilities::virtual_key_codes::*;
pub use crate::window_prefs::*;
Modules
Macros
Structs
- Series of images to play as an animation
- Usage
- The main struct of the crate.
- This represents an RGBA color and is used to store a pixel by
Image
andPixelsWrapper
- Represents a 2D point
- Represents a shape that is made of points that can be drawn either as a outline or solid
- Images are rectangles of pixels that can be manipulated and drawn on screen
- Rectangle
- Sound effect (although it can also be used for music) You must call SoundEffect::update or SoundEffect::update_secs with accurate values and often otherwise playback may stutter or jump
- Characters be drawn be at idx * char_width, idx * char_height
- Used for single or repeated timed events, uses fractional seconds
- Used to track time in games
Enums
- How palette data is stored in an ICI file
- Code representing the location of a physical key
- TextSize is used to set the size and positioning in pixels of text
Constants
- Gameboy DMG-01 Background/Lightest
- Gameboy DMG-01 Foreground/Darkest
Traits
- A shape counts as contained if it is fully inside
- Represents anything that Graphics can render
Functions
- This method has to be separate and named differently because f32::lerp already exists but is unstable
- Inverse of flerp