|
AnimaEngine
1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
|
Nintendo Animation Resource (.NANR) structure parsing. More...
#include "common.h"Go to the source code of this file.
Data Structures | |
| struct | NanrFrame |
| Represents a single keyframe in an animation timeline. More... | |
| struct | NanrAnimation |
| Animation timeline sequence block containing multiple frames. More... | |
| struct | NanrFile |
| Unpacked representation of a complete .NANR resource file. More... | |
Macros | |
| #define | NANR_SCALE_ONE 4096 |
| #define | NANR_ROTATION_FULL 65536.0 |
Typedefs | |
| typedef struct NanrFrame | NanrFrame |
| Represents a single keyframe in an animation timeline. More... | |
| typedef struct NanrAnimation | NanrAnimation |
| Animation timeline sequence block containing multiple frames. More... | |
| typedef struct NanrFile | NanrFile |
| Unpacked representation of a complete .NANR resource file. More... | |
Functions | |
| int | Nanr_Parse (const u8 *data, size_t size, NanrFile *out_nanr) |
| Parses an unpacked .NANR resource block from raw bytes. More... | |
| void | Nanr_Free (NanrFile *nanr) |
| Deallocates all resources held inside a NanrFile structure. More... | |
| int | Nanr_GetResolvedCellId (const NanrFile *nanr, int animation_index, int frame_index, NanrFrame *out_frame) |
| Retrieves information for a specific keyframe in a timeline sequence. More... | |
| int | Nanr_GetResolvedCellIdAtTick (const NanrFile *nanr, int animation_index, int tick, NanrFrame *out_frame) |
| Resolves keyframe attributes at a specific tick timing step. More... | |
| void | Nanr_PrintInfo (const NanrFile *nanr) |
| Debug printing routine to write parsed .NANR layout contents to stdout. More... | |
Nintendo Animation Resource (.NANR) structure parsing.
| #define NANR_ROTATION_FULL 65536.0 |
Fixed-point representation of a full 360 degree rotation.
| #define NANR_SCALE_ONE 4096 |
Fixed-point scale representation of 1.0.
| typedef struct NanrAnimation NanrAnimation |
Animation timeline sequence block containing multiple frames.
| void Nanr_Free | ( | NanrFile * | nanr | ) |
Deallocates all resources held inside a NanrFile structure.
| nanr | Pointer to structure to clear. |
| int Nanr_GetResolvedCellId | ( | const NanrFile * | nanr, |
| int | animation_index, | ||
| int | frame_index, | ||
| NanrFrame * | out_frame | ||
| ) |
Retrieves information for a specific keyframe in a timeline sequence.
| nanr | Pointer to parsed .NANR resource structure. |
| animation_index | Target animation sequence index. |
| frame_index | Frame index inside animation sequence. |
| out_frame | Destination NanrFrame container to write results. |
| int Nanr_GetResolvedCellIdAtTick | ( | const NanrFile * | nanr, |
| int | animation_index, | ||
| int | tick, | ||
| NanrFrame * | out_frame | ||
| ) |
Resolves keyframe attributes at a specific tick timing step.
| nanr | Pointer to parsed .NANR resource structure. |
| animation_index | Target animation sequence index. |
| tick | Timing offset tick inside the timeline loop. |
| out_frame | Destination NanrFrame container to write results. |
Parses an unpacked .NANR resource block from raw bytes.
| data | Pointer to binary file data buffer. |
| size | Buffer size in bytes. |
| out_nanr | Destination NanrFile structure. |
| void Nanr_PrintInfo | ( | const NanrFile * | nanr | ) |
Debug printing routine to write parsed .NANR layout contents to stdout.
| nanr | Pointer to parsed .NANR resource. |