Functions | |
| absl::StatusOr< gfx::PaletteGroup > | BindPaletteRows (const project::SpriteAssetBinding &binding, const gfx::PaletteGroup &defaults, const gfx::PaletteGroup &global, const gfx::PaletteGroup &aux1, const gfx::PaletteGroup &aux2, const gfx::PaletteGroup &aux3) |
| absl::Status | ValidateDrawAdapter (const zsprite::ZSprite &sprite, const std::string &adapter) |
| int | OffsetX (const zsprite::OamTile &tile) |
| int | OffsetY (const zsprite::OamTile &tile) |
| zsprite::Frame | CopyVanillaLayout (const zelda3::SpriteOamLayout &layout) |
| bool | AppendFrame (zsprite::ZSprite &sprite, int copy_from=-1) |
| bool | DeleteFrame (zsprite::ZSprite &sprite, int index) |
| absl::StatusOr< std::string > | ExportDrawTables (const zsprite::ZSprite &sprite) |
| bool | Advance (const zsprite::AnimationGroup &animation, size_t frame_count, float delta, int &frame, float &remainder) |
| absl::StatusOr< std::vector< zsprite::Frame > > | ImportDrawTables (const std::vector< std::string > &lines, size_t first_line) |
| absl::StatusOr< std::vector< zsprite::Frame > > | ImportMapleDrawTables (const std::vector< std::string > &lines, size_t first_line) |
| absl::StatusOr< std::vector< zsprite::Frame > > | ImportDrawAsset (const std::vector< std::string > &lines, size_t first_line, const std::string &adapter) |
Variables | |
| constexpr int | kOriginX = 128 |
| constexpr int | kOriginY = 112 |
| constexpr size_t | kMaxFrames = 256 |
|
inline |
Definition at line 16 of file sprite_authoring.h.
References yaze::gfx::PaletteGroup::AddPalette(), yaze::gfx::PaletteGroup::palette(), yaze::project::SpriteAssetBinding::palette_rows, and yaze::gfx::PaletteGroup::size().
Referenced by yaze::editor::SpriteEditor::LoadSpritePalettes().
|
inline |
Definition at line 45 of file sprite_authoring.h.
References yaze::editor::zsprite::ZSprite::editor, and yaze::editor::zsprite::SubEditor::Frames.
Referenced by yaze::editor::SpriteEditor::ExportCurrentSpriteDraw().
|
inline |
Definition at line 64 of file sprite_authoring.h.
References kOriginX, and yaze::editor::zsprite::OamTile::x.
Referenced by yaze::editor::SpriteEditor::DrawFrameEditor(), yaze::editor::SpriteDrawer::DrawOamTile(), ExportDrawTables(), and yaze::editor::SpriteEditor::RenderZSpriteFrame().
|
inline |
Definition at line 67 of file sprite_authoring.h.
References kOriginY, and yaze::editor::zsprite::OamTile::y.
Referenced by yaze::editor::SpriteEditor::DrawFrameEditor(), yaze::editor::SpriteDrawer::DrawOamTile(), ExportDrawTables(), and yaze::editor::SpriteEditor::RenderZSpriteFrame().
|
inline |
Definition at line 71 of file sprite_authoring.h.
References kOriginX, kOriginY, yaze::editor::zsprite::Frame::Tiles, and yaze::zelda3::SpriteOamLayout::tiles.
Referenced by yaze::editor::SpriteEditor::DrawSpriteCanvas(), and yaze::editor::SpriteEditor::RenderVanillaSprite().
|
inline |
Definition at line 83 of file sprite_authoring.h.
References yaze::editor::zsprite::ZSprite::editor, yaze::editor::zsprite::SubEditor::Frames, and kMaxFrames.
Referenced by yaze::editor::SpriteEditor::DrawFrameEditor().
|
inline |
Definition at line 94 of file sprite_authoring.h.
References yaze::editor::zsprite::ZSprite::animations, yaze::editor::zsprite::ZSprite::editor, and yaze::editor::zsprite::SubEditor::Frames.
Referenced by yaze::editor::SpriteEditor::Cut(), and yaze::editor::SpriteEditor::DrawFrameEditor().
|
inline |
Definition at line 114 of file sprite_authoring.h.
References yaze::editor::zsprite::ZSprite::editor, yaze::editor::zsprite::SubEditor::Frames, kMaxFrames, OffsetX(), and OffsetY().
Referenced by yaze::editor::SpriteEditor::ExportCurrentSpriteDraw().
|
inline |
Definition at line 165 of file sprite_authoring.h.
References yaze::editor::zsprite::AnimationGroup::frame_end, yaze::editor::zsprite::AnimationGroup::frame_speed, and yaze::editor::zsprite::AnimationGroup::frame_start.
Referenced by yaze::editor::usage_preview::SpriteUsagePreview::Advance(), and yaze::editor::SpriteEditor::UpdateAnimationPlayback().
|
inline |
Definition at line 16 of file sprite_draw_import.h.
References kOriginX, kOriginY, and yaze::editor::zsprite::Frame::Tiles.
Referenced by ImportDrawAsset(), and ImportMapleDrawTables().
|
inline |
Definition at line 134 of file sprite_draw_import.h.
References yaze::core::ComputeSourceArtifactSha256(), and ImportDrawTables().
Referenced by ImportDrawAsset().
|
inline |
Definition at line 186 of file sprite_draw_import.h.
References ImportDrawTables(), and ImportMapleDrawTables().
Referenced by yaze::editor::SpriteEditor::ImportCatalogDraw().
|
constexpr |
Definition at line 60 of file sprite_authoring.h.
Referenced by CopyVanillaLayout(), yaze::editor::SpriteEditor::DrawFrameEditor(), ImportDrawTables(), and OffsetX().
|
constexpr |
Definition at line 61 of file sprite_authoring.h.
Referenced by CopyVanillaLayout(), yaze::editor::SpriteEditor::DrawFrameEditor(), ImportDrawTables(), and OffsetY().
|
constexpr |
Definition at line 62 of file sprite_authoring.h.
Referenced by AppendFrame(), ExportDrawTables(), and yaze::editor::SpriteEditor::Paste().