yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
catalog_object_transfer.cc File Reference
#include "app/editor/graphics/catalog_object_transfer.h"
#include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>
#include <map>
#include <set>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "app/editor/graphics/graphics_edit_context.h"
#include "app/editor/graphics/graphics_editor_state.h"
#include "app/editor/graphics/graphics_sheet_sync.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{catalog_object_transfer.cc}
 

Typedefs

using yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::TileKey = std::pair<uint16_t, uint16_t>
 
using yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::TilePixels = std::array<uint8_t, 64>
 

Functions

bool yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::ValidDimensions (int width, int height)
 
size_t yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::SheetOffset (uint16_t tile, int x, int y)
 
absl::StatusOr< PixelIndexPlan > yaze::editor::PlanCatalogObjectTransfer (const GraphicsEditorState &state, const CatalogAssetPreview &asset, const CatalogArtRect &crop)
 

Variables

constexpr int yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kTileSize = 8
 
constexpr int yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kSheetWidth = zelda3::GraphicsSheetStore::kSheetWidth
 
constexpr int yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kTilesPerRow = kSheetWidth / kTileSize
 
constexpr int yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kTilesPerSheet = zelda3::GraphicsSheetStore::kSheetBytes / 64
 
constexpr int yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kMaxDimension = 2048
 
constexpr size_t yaze::editor::anonymous_namespace{catalog_object_transfer.cc}::kMaxPixels = 1024 * 1024