Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
Layer Struct Reference

A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables, one per buffer, a scroll position and a list of draw callbacks. More...

#include <engine/gfx.h>

Collaboration diagram for Layer:
[legend]

Data Fields

DRAWENV env
 
u_long * ot [2]
 
s32 otLen
 
s32 otShift
 
s16 offsetX
 
s16 offsetY
 
s32 scrollX
 
s32 scrollY
 
s32 callbackCap
 
s32 callbackCount
 
DrawCallback * callbacks
 
s32 keepView
 
s32 projection
 
MATRIX view [2]
 
s32 keepLightMatrix
 
MATRIX lightMatrix [2]
 
void(* setClipPos )()
 no prototype: callers would truncate s16 args
 
void(* setClipSize )()
 no prototype: callers would truncate s16 args
 
void(* setOffset )()
 no prototype: callers would truncate s16 args
 
void(* getScroll )()
 
void(* setScroll )()
 
void(* addScroll )()
 
void(* getViewRect )()
 
void(* setBgColor )()
 no prototype: callers would truncate u8 args
 
void(* draw )(struct Layer *)
 
void(* clearOt )(struct Layer *)
 
u_long *(* getOtEntry )(struct Layer *, s32 depth)
 
u_long *(* getOtEntryZ )(struct Layer *layer, s32 z)
 
u_long *(* getOt )(struct Layer *)
 
s32(* getOtShift )()
 
void(* allocCallbacks )()
 
void(* addSortedCallback )()
 
void(* addCallback )()
 
void(* runCallbacks )(struct Layer *)
 
void(* loadView )(struct Layer *)
 
void(* setKeepView )()
 
void(* loadLightMatrix )(struct Layer *)
 
void(* setKeepLightMatrix )()
 
void(* free )(struct Layer *)
 

Detailed Description

A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables, one per buffer, a scroll position and a list of draw callbacks.

Definition at line 128 of file gfx.h.

Field Documentation

◆ env

DRAWENV Layer::env

Definition at line 129 of file gfx.h.

Referenced by FIGHTSTG_isMeshOnScreen(), layerDraw(), and newLayer().

◆ ot

u_long* Layer::ot[2]

◆ otLen

s32 Layer::otLen

Definition at line 131 of file gfx.h.

Referenced by layerClearOt(), layerDraw(), layerSkipEmptyOt(), and newLayer().

◆ otShift

s32 Layer::otShift

Definition at line 132 of file gfx.h.

Referenced by layerGetOtEntryZ(), and newLayer().

◆ offsetX

s16 Layer::offsetX

Definition at line 133 of file gfx.h.

Referenced by FIGHTSTG_isMeshOnScreen(), and layerDraw().

◆ offsetY

s16 Layer::offsetY

Definition at line 134 of file gfx.h.

Referenced by FIGHTSTG_isMeshOnScreen(), and layerDraw().

◆ scrollX

s32 Layer::scrollX

Definition at line 135 of file gfx.h.

◆ scrollY

s32 Layer::scrollY

Definition at line 136 of file gfx.h.

◆ callbackCap

s32 Layer::callbackCap

Definition at line 137 of file gfx.h.

Referenced by layerAddCallback(), layerAddSortedCallback(), layerAllocCallbacks(), and layerFree().

◆ callbackCount

s32 Layer::callbackCount

◆ callbacks

◆ keepView

s32 Layer::keepView

Definition at line 140 of file gfx.h.

Referenced by drawFrame(), and layerSetKeepView().

◆ projection

s32 Layer::projection

Definition at line 141 of file gfx.h.

Referenced by layerLoadView(), and layerSetKeepView().

◆ view

MATRIX Layer::view[2]

Definition at line 142 of file gfx.h.

Referenced by layerLoadView(), and layerSetKeepView().

◆ keepLightMatrix

s32 Layer::keepLightMatrix

Definition at line 143 of file gfx.h.

Referenced by drawFrame(), and layerSetKeepLightMatrix().

◆ lightMatrix

MATRIX Layer::lightMatrix[2]

Definition at line 144 of file gfx.h.

Referenced by layerLoadLightMatrix(), and layerSetKeepLightMatrix().

◆ setClipPos

void(* Layer::setClipPos) ()

no prototype: callers would truncate s16 args

Definition at line 145 of file gfx.h.

Referenced by FIELDSTG_closeField(), FIELDSTG_updateBanner(), newLayer(), and setChangeClips().

◆ setClipSize

void(* Layer::setClipSize) ()

no prototype: callers would truncate s16 args

Definition at line 146 of file gfx.h.

Referenced by FIELDSTG_closeField(), FIELDSTG_updateBanner(), newLayer(), and setChangeClips().

◆ setOffset

void(* Layer::setOffset) ()

no prototype: callers would truncate s16 args

Definition at line 147 of file gfx.h.

Referenced by FIGHTSTG_updatePartnerView(), newLayer(), and STPLNMET_centerLayer().

◆ getScroll

◆ setScroll

void(* Layer::setScroll) ()

Definition at line 149 of file gfx.h.

Referenced by FIELDSTG_scrollCamera(), and newLayer().

◆ addScroll

void(* Layer::addScroll) ()

Definition at line 150 of file gfx.h.

Referenced by newLayer().

◆ getViewRect

void(* Layer::getViewRect) ()

◆ setBgColor

◆ draw

void(* Layer::draw) (struct Layer *)

Definition at line 153 of file gfx.h.

Referenced by drawFrame(), and newLayer().

◆ clearOt

void(* Layer::clearOt) (struct Layer *)

Definition at line 154 of file gfx.h.

Referenced by drawFrame(), and newLayer().

◆ getOtEntry

◆ getOtEntryZ

u_long *(* Layer::getOtEntryZ) (struct Layer *layer, s32 z)

Definition at line 156 of file gfx.h.

Referenced by newLayer().

◆ getOt

u_long *(* Layer::getOt) (struct Layer *)

Definition at line 157 of file gfx.h.

Referenced by FIGHTSTG_drawMesh(), FIGHTSTG_drawMeshWireframe(), and newLayer().

◆ getOtShift

s32(* Layer::getOtShift) ()

Definition at line 158 of file gfx.h.

Referenced by FIGHTSTG_projectMesh(), FIGHTSTG_projectPoint(), and newLayer().

◆ allocCallbacks

void(* Layer::allocCallbacks) ()

◆ addSortedCallback

◆ addCallback

void(* Layer::addCallback) ()

◆ runCallbacks

void(* Layer::runCallbacks) (struct Layer *)

Definition at line 162 of file gfx.h.

Referenced by drawFrame(), and newLayer().

◆ loadView

void(* Layer::loadView) (struct Layer *)

Definition at line 163 of file gfx.h.

Referenced by drawFrame(), and newLayer().

◆ setKeepView

void(* Layer::setKeepView) ()

Definition at line 164 of file gfx.h.

Referenced by FIGHTSTG_applyCamera(), FIGHTSTG_updateBattleCamera(), and newLayer().

◆ loadLightMatrix

void(* Layer::loadLightMatrix) (struct Layer *)

Definition at line 165 of file gfx.h.

Referenced by drawFrame(), and newLayer().

◆ setKeepLightMatrix

void(* Layer::setKeepLightMatrix) ()

Definition at line 166 of file gfx.h.

Referenced by FIGHTSTG_updateLights(), and newLayer().

◆ free

void(* Layer::free) (struct Layer *)

Definition at line 167 of file gfx.h.

Referenced by destroyLayer(), and newLayer().


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