sgdk: SpriteDefinition Struct Reference

sgdk

- Main Page
- Related Pages
- Classes
- Files

- Class List

Public Attributes
SpriteDefinition Struct Reference

Sprite definition structure. More...

`#include <sprite_eng.h>`

List of all members.

## Public Attributes

u16 | w
u16 | h
Palette * | palette
u16 | numAnimation
Animation ** | animations
u16 | maxNumTile
u16 | maxNumSprite

## Detailed Description

Sprite definition structure.

Parameters:

  w | frame cell width in pixel
  h | frame cell height in pixel
  palette | default palette data
  numAnimation | number of animation for this sprite
  animations | animation definitions
  maxNumTile | maximum number of tile used by a single animation frame (used for VRAM tile space allocation)
  maxNumSprite | maximum 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:

- sprite_eng.h

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines