Crate nze_game_sdl

source ·
Expand description

A library to abstract away the details of the sdl2 library for creating games easier

Re-exports

Modules

  • Used for playing music and sound effects
  • Used to get input from the Keyboard, Mouse, or controllers
  • resource managers which are created and held by other types
  • For loading, qurying, and drawing Tiled maps
  • 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

  • Used for drawing to the canvas.
  • An RGBA colour with values from 0 to 255 for each channel
  • 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.
  • Holds ownership of an sdl Canvas, this should be passed to Render
  • used by crate::camera::Camera for drawing texures with texture rects and draw rects and a colour.
  • Holds ownership of a DrawingArea and texture and font managers, created using a ContextSdl

Enums

  • Used by the library for reporting errors, so that the calling program can respond appropriately

Type Definitions