libmsx
C library for MSX
Loading...
Searching...
No Matches

SM2 (Sprite Mode 2) internal APIs for BMEM / Resources. More...

#include "sm2.h"
+ Include dependency graph for sm2_bmem.h:

Go to the source code of this file.

Functions

size_t sm2_load_cel_resource (const char *name, sm2_Cel cels[], size_t cels_max)
 MSX2 Load sprite cels.
 

Detailed Description

SM2 (Sprite Mode 2) internal APIs for BMEM / Resources.

Definition in file sm2_bmem.h.

Function Documentation

◆ sm2_load_cel_resource()

size_t sm2_load_cel_resource ( const char * name,
sm2_Cel cels[],
size_t cels_max )

MSX2 Load sprite cels.

Parameters
nameName of resource that contains list of cel data.
celsArray of cell objects to be initialized.
cels_maxNumber of cels (capacity) of the array.
Returns
Number of cels initialized.
Note
To initialize a sprite sheet object, this function is called from the sprite sheet initialization function “<your_spritte_sheet_name>_init()” automatically generated by the ase2msx tool. Therefore, it is usually not necessary to call this. Call “<your_spritte_sheet_name>_init()” instead.