OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
OamWorldBatch Struct Reference

A batch of sprites in world coordinates, for oamPlaceWorld(). More...

#include <sprite.h>

Public Attributes

const u8 * attr
u8 count
u8 first_id
const u8 * order
u8 size
const u8 * tile
u8 * visible
const s16 * x
const s16 * y

Detailed Description

A batch of sprites in world coordinates, for oamPlaceWorld().

Structure of arrays: one array per property, one element per sprite, which is what the 65816 indexes cheaply. The arrays may live in ROM, in plain RAM or in FAR RAM.

Member Data Documentation

◆ attr

const u8* OamWorldBatch::attr

12: attribute byte (vhoopppc), as OAM_ATTR() builds it

◆ count

u8 OamWorldBatch::count

21: number of sprites

◆ first_id

u8 OamWorldBatch::first_id

20: OAM id of the first sprite of the batch

◆ order

const u8* OamWorldBatch::order

24: optional, one byte per slot: slot i shows sprite order[i]. 0: slot i shows sprite i

◆ size

u8 OamWorldBatch::size

22: width and height in pixels: 8, 16, 32 or 64

◆ tile

const u8* OamWorldBatch::tile

8: tile number, low byte

◆ visible

u8* OamWorldBatch::visible

16: out, one byte per sprite: 1 placed, 0 hidden. May be 0

◆ x

const s16* OamWorldBatch::x

0: world x of each sprite's top-left corner

◆ y

const s16* OamWorldBatch::y

4: world y


The documentation for this struct was generated from the following file:
  • /home/runner/work/opensnes/opensnes/lib/include/snes/sprite.h