papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
gbi_custom.h File Reference

Macros

#define gDPScrollMultiTile2_4b(pkt, timg, fmt, width, height, uls, ult, lrs, lrt, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt)
 
#define gDPScrollTextureTile_4b(pkt, timg, fmt, width, height, uls, ult, lrs, lrt, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt)
 
#define gDPScrollTextureBlock_4b(pkt, timg, fmt, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt)
 
#define gDPScrollMultiTile_4b(pkt, timg, tmem, rtile, fmt, width, height, uls, ult, lrs, lrt, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt)
 
#define gDPScrollMultiTile(pkt, timg, tmem, rtile, fmt, siz, width, height, uls, ult, lrs, lrt, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt)
 
#define gDPScrollTextureBlockHalfHeight(pkt, timg, fmt, siz, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt, shifts2, shiftt2)
 
#define gDPScrollTextureBlockHalfHeight_4b(pkt, timg, fmt, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt, scrolls, scrollt, shifts2, shiftt2)
 

Macro Definition Documentation

◆ gDPScrollMultiTile

#define gDPScrollMultiTile ( pkt,
timg,
tmem,
rtile,
fmt,
siz,
width,
height,
uls,
ult,
lrs,
lrt,
pal,
cms,
cmt,
masks,
maskt,
shifts,
shiftt,
scrolls,
scrollt )

◆ gDPScrollMultiTile2_4b

◆ gDPScrollMultiTile_4b

◆ gDPScrollTextureBlock_4b

#define gDPScrollTextureBlock_4b ( pkt,
timg,
fmt,
width,
height,
pal,
cms,
cmt,
masks,
maskt,
shifts,
shiftt,
scrolls,
scrollt )

◆ gDPScrollTextureBlockHalfHeight

#define gDPScrollTextureBlockHalfHeight ( pkt,
timg,
fmt,
siz,
width,
height,
pal,
cms,
cmt,
masks,
maskt,
shifts,
shiftt,
scrolls,
scrollt,
shifts2,
shiftt2 )
Value:
{ \
(((width)*(height) + siz##_INCR) >> siz##_SHIFT) -1, \
CALC_DXT(width, siz##_BYTES)); \
(((width) * siz##_LINE_BYTES)+7)>>3, 0, \
((width)-1) << G_TEXTURE_IMAGE_FRAC, \
(((height) >> 1)-1) << G_TEXTURE_IMAGE_FRAC) \
(((width) * siz##_LINE_BYTES)+7)>>3, \
(((width) * ((height) >> 1) * siz##_LINE_BYTES)+7)>>3, \
(scrolls),\
(scrollt), \
(((width)-1) << G_TEXTURE_IMAGE_FRAC) + (scrolls), \
((((height) >> 1)-1) << G_TEXTURE_IMAGE_FRAC) + (scrollt) ); \
}

Referenced by make_texture_gfx().

◆ gDPScrollTextureBlockHalfHeight_4b

#define gDPScrollTextureBlockHalfHeight_4b ( pkt,
timg,
fmt,
width,
height,
pal,
cms,
cmt,
masks,
maskt,
shifts,
shiftt,
scrolls,
scrollt,
shifts2,
shiftt2 )
Value:
{ \
(((width)*(height)+3)>>2)-1, \
CALC_DXT_4b(width)); \
gDPSetTile(pkt, fmt, G_IM_SIZ_4b, ((((width)>>1)+7)>>3), 0, \
((width)-1) << G_TEXTURE_IMAGE_FRAC, \
(((height) >> 1)-1) << G_TEXTURE_IMAGE_FRAC) \
(((width)>>1)+7)>>3, \
(((width) * ((height) >> 1) / 2)+7)>>3, \
(((width)-1) << G_TEXTURE_IMAGE_FRAC) + scrolls, \
((((height) >> 1)-1) << G_TEXTURE_IMAGE_FRAC) + scrollt) \
}

Referenced by make_texture_gfx().

◆ gDPScrollTextureTile_4b