yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sprite_authoring.h File Reference
#include <algorithm>
#include <cmath>
#include <sstream>
#include "absl/status/statusor.h"
#include "app/editor/sprite/zsprite.h"
#include "app/gfx/types/snes_palette.h"
#include "core/sprite_asset.h"
#include "zelda3/sprite/sprite_oam_tables.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::sprite_authoring
 

Functions

absl::StatusOr< gfx::PaletteGroup > yaze::editor::sprite_authoring::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 yaze::editor::sprite_authoring::ValidateDrawAdapter (const zsprite::ZSprite &sprite, const std::string &adapter)
 
int yaze::editor::sprite_authoring::OffsetX (const zsprite::OamTile &tile)
 
int yaze::editor::sprite_authoring::OffsetY (const zsprite::OamTile &tile)
 
zsprite::Frame yaze::editor::sprite_authoring::CopyVanillaLayout (const zelda3::SpriteOamLayout &layout)
 
bool yaze::editor::sprite_authoring::AppendFrame (zsprite::ZSprite &sprite, int copy_from=-1)
 
bool yaze::editor::sprite_authoring::DeleteFrame (zsprite::ZSprite &sprite, int index)
 
absl::StatusOr< std::string > yaze::editor::sprite_authoring::ExportDrawTables (const zsprite::ZSprite &sprite)
 
bool yaze::editor::sprite_authoring::Advance (const zsprite::AnimationGroup &animation, size_t frame_count, float delta, int &frame, float &remainder)
 

Variables

constexpr int yaze::editor::sprite_authoring::kOriginX = 128
 
constexpr int yaze::editor::sprite_authoring::kOriginY = 112
 
constexpr size_t yaze::editor::sprite_authoring::kMaxFrames = 256