coastline 0.0.4
Loading...
Searching...
No Matches
paintundo.h
Go to the documentation of this file.
1#ifndef COASTLINE_N64_PAINTUNDO_H
2#define COASTLINE_N64_PAINTUNDO_H
3
5
6#define PAINT_UNDO_SLOT 0
7#define PAINT_UNDO_ALL 1
8#define PAINT_UNDO_PALETTE 2
9
18void InitPaintUndo(u8 *memory, u32 capacity, VehicleModel *model, u16 *palette);
19
24
27
30
33
38
43
46
48void ResetPaintUndo(void);
49
54
59
60#endif /* COASTLINE_N64_PAINTUNDO_H */
s32 PaintUndoIsDirty(void)
Return whether current decals differ from the saved history position.
void MarkPaintUndoSaved(void)
Record the current history position as saved.
s32 RedoPaintChange(void)
Reapply the next edit.
void RecordPaintUndoSlot(s32 slot)
Record the current pixels of one slot before an edit.
void RecordPaintUndoPalette(void)
Record the palette before its colour editor changes it.
void RecordPaintUndoAll(void)
Record every slot before an edit that changes the whole car.
void ResetPaintUndo(void)
Clear history after loading another decal file.
void CancelPaintUndoPalette(void)
Discard the latest entry when a palette edit is cancelled.
s32 PaintUndoCanUndo(void)
Return whether an earlier edit can be restored.
void InitPaintUndo(u8 *memory, u32 capacity, VehicleModel *model, u16 *palette)
Initialise paint history in the remaining interface memory.
s32 UndoPaintChange(void)
Restore the previous edit.
The model of a car as it is loaded from the cartridge.
Definition vehiclemodel.h:55
unsigned int u32
Definition ultratypes.h:20
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18