craydate 0.1.7

A safe Rust API for the Playdate hand held gaming system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::bitmap::BitmapRef;
use crate::ctypes::*;

/// Information about a single bitmap, used in testing for collision between two bitmaps opaque
/// pixels.
pub struct BitmapCollider<'a> {
  /// A bitmap being tested for collision.
  pub bitmap: &'a BitmapRef,
  /// If the bitmap is flipped along each axis.
  pub flipped: BitmapFlip,
  /// The bitmap's x position.
  pub x: i32,
  /// The bitmap's y position.
  pub y: i32,
}