Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
tim_loader.c File Reference
#include "engine/game.h"
#include <libgs.h>
#include <libetc.h>
#include <libsnd.h>
Include dependency graph for tim_loader.c:

Go to the source code of this file.

Functions

void bindTimLoader (TimLoader *obj)
 Makes obj the TIM loader the methods work on.
 
void timLoaderSetImagePos (s32 x, s32 y)
 TIM loader method: where in VRAM the next image goes.
 
void timLoaderSetClutPos (s32 x, s32 y)
 TIM loader method: where in VRAM the next CLUT goes.
 
void timLoaderLoad (void *tim)
 TIM loader method: sends a TIM's CLUT (4 and 8-bit images) and image to VRAM.
 
void timLoaderLoadArchive (void *archive)
 TIM loader method: loads every TIM of an archive side by side, 0x40 halfwords apart, unpacking the RLEN ones.
 
void timLoaderSetBufferSize (s32 size)
 TIM loader method: the buffer that RLEN TIMs are unpacked to.
 
void initTimLoader (TimLoader *obj)
 Clears a TIM loader, gives it its methods and binds it.
 

Variables

static TimLoader * TIM_LOADER
 Small variables, addressed through $gp (see the Makefile)
 

Function Documentation

◆ bindTimLoader()

void bindTimLoader ( TimLoader *  obj)

Makes obj the TIM loader the methods work on.

Definition at line 10 of file tim_loader.c.

Referenced by initTimLoader().

Here is the caller graph for this function:

◆ timLoaderSetImagePos()

void timLoaderSetImagePos ( s32  x,
s32  y 
)

TIM loader method: where in VRAM the next image goes.

Definition at line 15 of file tim_loader.c.

Referenced by initTimLoader().

Here is the caller graph for this function:

◆ timLoaderSetClutPos()

void timLoaderSetClutPos ( s32  x,
s32  y 
)

TIM loader method: where in VRAM the next CLUT goes.

Definition at line 21 of file tim_loader.c.

Referenced by initTimLoader().

Here is the caller graph for this function:

◆ timLoaderLoad()

void timLoaderLoad ( void *  tim)

TIM loader method: sends a TIM's CLUT (4 and 8-bit images) and image to VRAM.

Definition at line 27 of file tim_loader.c.

Referenced by initTimLoader(), and timLoaderLoadArchive().

Here is the caller graph for this function:

◆ timLoaderLoadArchive()

void timLoaderLoadArchive ( void *  archive)

TIM loader method: loads every TIM of an archive side by side, 0x40 halfwords apart, unpacking the RLEN ones.

< the current mode's: freed by main whenever the mode task ends

Definition at line 66 of file tim_loader.c.

Referenced by initTimLoader().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timLoaderSetBufferSize()

void timLoaderSetBufferSize ( s32  size)

TIM loader method: the buffer that RLEN TIMs are unpacked to.

Definition at line 114 of file tim_loader.c.

Referenced by initTimLoader().

Here is the caller graph for this function:

◆ initTimLoader()

Variable Documentation

◆ TIM_LOADER

TimLoader* TIM_LOADER
static

Small variables, addressed through $gp (see the Makefile)

Definition at line 7 of file tim_loader.c.

Referenced by bindTimLoader(), timLoaderLoad(), timLoaderLoadArchive(), timLoaderSetBufferSize(), timLoaderSetClutPos(), and timLoaderSetImagePos().