Re-exports§
pub use crate::GraphicsError;
pub use crate::MouseData;
pub use crate::Options;
pub use crate::System;
pub use crate::WindowScaling;
pub use winit_29 as winit;
pub use crate::dialogs::*;
pub use crate::scenes::*;
pub use crate::utilities::virtual_key_codes::*;
pub use crate::window_prefs::*;
Modules§
Macros§
- Create a Coord Accepts
Structs§
- Series of images to play as an animation
- Usage
- The main struct of the crate.
- Clip has four modes:
- This represents an RGBA color
- Represents a 2D point
- Only the letter sizes you’ll use need to be set
- Represents a shape that is made of points that can be drawn either as a outline or solid
- Images are a rectangle of pixels that can be manipulated and drawn on screen/saved to disk
- Shape with any number of points/line
- 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
- collection of named tiles
- Used for single or repeated timed events, uses fractional seconds
- Used to track time in games
- Represents a window.
Enums§
- How palette data is stored in an ICI file
- Store static or animated images in a generic way
- Code representing the location of a physical key
- Describes a button of a mouse controller.
- PixelFont is used to set the size and positioning in pixels of text
- Use
PixelFont::px_to_cols
to convert pixels to columns
Constants§
- Gameboy DMG-01 Background/Lightest
- Gameboy DMG-01 Foreground/Darkest
Traits§
- Converts to/from RGBA and ARGB
- A shape counts as contained if it is fully inside
- Converts to/from RGB
- Represents anything that Graphics can render
Functions§
- This method has to be separate and named differently because f32::lerp already exists but is unstable
- calculate the percent for
point
betweenself
andend
- Return size in pixels for text Run
text
through wrapping strategy first - Create and run a loop using Pixels and Winit
Type Aliases§
- Type alias for a hash set that uses the Fx hashing algorithm.