89 setSemiTrans(sprt, 1);
91 setRGB0(sprt, 0x80, 0x80, 0x80);
99 SetDrawTPage((DR_TPAGE *)sprt, 0, 1, tpage);
100 end = (
u8 *)base +
sizeof(SPRT) +
sizeof(DR_TPAGE);
131#if VERSION_US || VERSION_JP
138s32 CARD_KINDS[] = { 0, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 0, 0 };
s32 CARD_IMAGE_FILES[]
The card images, 64 cards to a file (cardDrawerSetCard), numbered in the Japanese disc as in the USA ...
s32 cardDrawerGetKind(void)
Card drawer method: the kind of the current card (CARD_KINDS)
void cardDrawerSetClutPos(s32 x, s32 y)
Card drawer method: the VRAM area of the CLUTs.
void cardDrawerSetLayer(s32 id, s32 depth)
Card drawer method: the layer and depth to draw to.
void cardDrawerDraw(s32 x, s32 y)
Card drawer method: draws the card of the current cell at (x, y), a 32x32 sprite.
static CardDrawer * CARD_DRAWER
Small variables, addressed through $gp (see the Makefile)
void cardDrawerSetCard(s32 id)
Card drawer method: picks the image of card id (0 or less: the first image of the first file)
void bindCardDrawer(CardDrawer *obj)
Makes obj the card drawer the methods work on.
void cardDrawerLoadImage(void)
Card drawer method: loads the card's image and CLUT into its cell of VRAM.
s32 CARD_KINDS[]
cardDrawerGetKind's kinds, by a card image's byte 3
void cardDrawerSetSemiTrans(s32 on)
Card drawer method: draws semi-transparent, or not.
void cardDrawerSetCell(s32 x, s32 y)
Card drawer method: the cell a card is loaded to and drawn from.
void cardDrawerSetClutStride(s32 stride)
Card drawer method: the CLUT rows between two columns of cells.
void cardDrawerSetImagePos(s32 x, s32 y)
Card drawer method: the VRAM area of the image cells.
void initCardDrawer(CardDrawer *obj)
Clears a card drawer, gives it its methods and binds it.
GfxState GFX
GFX: the graphics state and its methods.
FileCache FILE_CACHE
The file cache.
Heap HEAP
The functions that return what a call left in v0 (allocMemHigh, findTask) and the ones that take othe...
Draws the cards' images (CardImage), from files 0x7E7-0x7EB.
void(* setClutPos)()
(x, y)
void(* setClutStride)()
(stride)
void(* setImagePos)()
(x, y)
s32 imageX
VRAM position of the image grid.
void(* setLayer)()
(id, depth)
s32 cellX
grid cell: 32x32 pixels, one CLUT row each
void(* setSemiTrans)()
(on)
A card's image (CardDrawer.card): 64 to a file, a 12-byte header and a 32x32 8-bit TIM.
u8 kind
an index in CARD_KINDS
u8 tim[0x620]
its header, a 256-colour CLUT block and the image block
struct Layer *(* getLayer)(s32 id)
void(* setPrim)(void *next)
void(* zero)(void *ptr, s32 size)
A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables,...
u_long *(* getOtEntry)(struct Layer *, s32 depth)
Uploads TIM images to VRAM (initTimLoader); acts on TIM_LOADER.
void(* setClutPos)()
(x, y)
void(* setImagePos)()
(x, y)
void initTimLoader(TimLoader *obj)
Clears a TIM loader, gives it its methods and binds it.