persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
GraphicsTypes.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "data/spriteDb.hpp"
4#include <nds.h>
5
10{
11 int id = -1;
12 void* tiles = nullptr;
13 u32 tilesLen = -1;
14 void* pal = nullptr;
15 u32 palLen = -1;
16 void* map = nullptr;
17 u32 mapLen = -1;
18};
19
23struct Sprite
24{
25 SpriteSize size;
26 SpriteColorFormat format;
28 u16* gfx; // default = 0?
29};
30
35{
36 // sprite data
38
39 // render data
40 int x = 0;
41 int y = 0;
42 int priority = 1;
43 int affineIndex = 0;
44 bool hflip = false;
45 bool vflip = false;
46 // uncommon
47 bool hide = false;
48 bool sizeDouble = false;
49 bool mosaic = false;
50};
51
56{
57 int angle;
58 int sx;
59 int sy;
60};
61
66{
68 // SpriteTransform spriteTransform; // TODO: remove? This is an operation *on* a sprite, not dealing with lifecyle of a sprite
69
70 const std::string& spritePath;
72
75};
SpriteType
Definition spriteDb.hpp:6
Holds loaded graphics data.
Data to manage the lifecycle of a sprite.
const std::string & spritePath
SpriteRenderState & srs
SpriteType spriteType
GraphicAsset & ga
Data to render a Sprite.
Data to perform a transformation on a Sprite.
A simple sprite structure.
SpriteColorFormat format
int paletteAlpha
SpriteSize size