1#ifndef YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_SHEET_SYNC_H
2#define YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_SHEET_SYNC_H
8#include "absl/status/status.h"
9#include "absl/types/span.h"
13class GraphicsSheetStore;
19class GraphicsEditorState;
46 absl::Span<const uint8_t> before,
47 absl::Span<const uint8_t> after);
64 absl::Span<const uint8_t> pixels);
69 const SheetPixelDiff& diff,
bool redo);
zelda3::GraphicsSheetStore * ActiveSheetStore(const GraphicsEditorState &state)
int SyncArenaFromStore(GraphicsEditorState &state)
absl::Status CommitSheetPixels(GraphicsEditorState &state, uint16_t sheet, absl::Span< const uint8_t > pixels)
void AttachSheetStore(GraphicsEditorState &state, zelda3::GameData *game_data)
void RefreshArenaSheet(GraphicsEditorState &state, uint16_t sheet)
absl::Status ApplySheetPixelDiff(GraphicsEditorState &state, const SheetPixelDiff &diff, bool redo)
SheetPixelDiff MakeSheetPixelDiff(uint16_t sheet, absl::Span< const uint8_t > before, absl::Span< const uint8_t > after)
The pixels that differ between two 4096-byte sheets.
The pixels one undo step changes in one sheet.
std::vector< uint16_t > offsets
size_t MemoryUsage() const
std::vector< uint8_t > after
std::vector< uint8_t > before