Expand description
A library to abstract away the details of the sdl2 library for creating games easier
Re-exports§
pub use nze_geometry as geometry;
Modules§
- audio
- Used for playing music and sound effects
- input
- Used to get input from the Keyboard, Mouse, or controllers
- manager
- resource managers which are created and held by other types
- map
- For loading, qurying, and drawing Tiled maps
- resource
- represent handles for resources loaded into the active sdl2 context, where they can be used by types in crate::manager to get the actual resources to draw to the canvas,
Structs§
- Camera
- Used for drawing to the canvas.
- Colour
- An RGBA colour with values from
0to255for each channel - Context
Sdl - This holds ownership of many sdl types that are required for being able to use it, but the context will not be changed after creation. It is created by DrawingArea.
- Drawing
Area - Holds ownership of an sdl Canvas, this should be passed to
Render - Game
Object - used by crate::camera::Camera for drawing texures with texture rects and draw rects and a colour.
- Render
- Holds ownership of a DrawingArea and texture and font managers, created using a ContextSdl
Enums§
- Error
- Used by the library for reporting errors, so that the calling program can respond appropriately
Type Aliases§
- Text
Object - Used by crate::camera::Camera. An object that stores text with some drawing settings for rendering.