Module agb::display::blend

source ·
Expand description

This controls the blending modes on the GBA.

For now a description of how blending can be used is found on the tonc page for graphic effects. See the Blend struct for all the functions to manage blend effects. You acquire the Blend struct through the Display struct.

let mut blend = gba.display.blend.get();
// ...

where gba is a mutable Gba struct.

Structs

  • Manages the blending, won’t cause anything to change unless Blend::commit is called.
  • When making many modifications to a layer, it is convenient to operate on that layer directly. This is created by the Blend::layer function and operates on that layer.

Enums

  • The different blend modes available on the GBA
  • The layers, top layer will be blended into the bottom layer