SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
SpriteDefinition Struct Reference

Sprite definition structure. More...

#include <sprite_eng.h>

Collaboration diagram for SpriteDefinition:
[legend]

Public Attributes

u16 w
 
u16 h
 
Palettepalette
 
u16 numAnimation
 
Animation ** animations
 
u16 maxNumTile
 
u16 maxNumSprite
 

Detailed Description

Sprite definition structure.

Parameters
wframe cell width in pixel
hframe cell height in pixel
palettedefault palette data
numAnimationnumber of animation for this sprite
animationsanimation definitions
maxNumTilemaximum number of tile used by a single animation frame (used for VRAM tile space allocation)
maxNumSpritemaximum number of VDP sprite used by a single animation frame (used for VDP sprite allocation)

Contains all animations for a Sprite and internal informations.


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