yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
graphics_sheet_sync.cc File Reference
#include "app/editor/graphics/graphics_sheet_sync.h"
#include <algorithm>
#include "absl/strings/str_format.h"
#include "app/editor/graphics/graphics_editor_state.h"
#include "app/gfx/resource/arena.h"
#include "util/macro.h"
#include "zelda3/game_data.h"
#include "zelda3/graphics_sheet_store.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{graphics_sheet_sync.cc}
 

Functions

SheetPixelDiff yaze::editor::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.
 
void yaze::editor::AttachSheetStore (GraphicsEditorState &state, zelda3::GameData *game_data)
 
zelda3::GraphicsSheetStore * yaze::editor::ActiveSheetStore (const GraphicsEditorState &state)
 
void yaze::editor::RefreshArenaSheet (GraphicsEditorState &state, uint16_t sheet)
 
absl::Status yaze::editor::CommitSheetPixels (GraphicsEditorState &state, uint16_t sheet, absl::Span< const uint8_t > pixels)
 
absl::Status yaze::editor::ApplySheetPixelDiff (GraphicsEditorState &state, const SheetPixelDiff &diff, bool redo)
 
int yaze::editor::SyncArenaFromStore (GraphicsEditorState &state)
 

Variables

constexpr size_t yaze::editor::anonymous_namespace{graphics_sheet_sync.cc}::kSheetBytes = zelda3::GraphicsSheetStore::kSheetBytes