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

A batch of sprites in screen coordinates, for oamSetBatch(). More...

#include <sprite.h>

Public Attributes

const u8 * attr
u8 count
u8 first_id
const u8 * tile
const s16 * x
const s16 * y

Detailed Description

A batch of sprites in screen coordinates, for oamSetBatch().

Structure of arrays, as OamWorldBatch. The arrays may live in ROM, in plain RAM or in FAR RAM.

Member Data Documentation

◆ attr

const u8* OamBatch::attr

12: attribute byte (vhoopppc), as OAM_ATTR() builds it. May be 0

◆ count

u8 OamBatch::count

17: number of sprites

◆ first_id

u8 OamBatch::first_id

16: OAM id of the first sprite of the batch

◆ tile

const u8* OamBatch::tile

8: tile number, low byte. May be 0: the tile bytes stay as they are

◆ x

const s16* OamBatch::x

0: screen x of each sprite, 0-511 as oamSetXY() takes it

◆ y

const s16* OamBatch::y

4: screen y (the low byte is the OAM byte)


The documentation for this struct was generated from the following file: