[][src]Function gba_addresses::vram::index_obj_tile

pub const fn index_obj_tile(i: usize) -> usize

Index to a given object tile.

Unlike with background tiles:

  • Object tile values are always relative to the beginning of the object charblocks.
  • Object tile indexes always index into memory as if they were 4bpp entries (even if the object is in 8bpp mode).

Panics

i must be < 1024.