yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sprite_graphics_context.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_SPRITE_SPRITE_GRAPHICS_CONTEXT_H_
2#define YAZE_APP_EDITOR_SPRITE_SPRITE_GRAPHICS_CONTEXT_H_
3
4#include <array>
5#include <string>
8struct Frame;
9}
11// Resolves every 8x8 component of the selected OAM entry independently.
12absl::StatusOr<GraphicsEditContext> Make(
13 const zsprite::Frame& frame, int frame_index, int oam_index,
14 const std::array<uint8_t, 8>& slots, const gfx::PaletteGroup& palettes,
15 const zelda3::GameData* owner, const std::string& source_label,
16 const std::string& sheet_source = "sprite sheet selection");
17// Captured pose/palette, live pixels from the owning session's store.
18absl::StatusOr<usage_preview::PreviewImage> RenderCapturedFrame(
19 const zsprite::Frame& frame, const std::array<uint8_t, 8>& slots,
20 const gfx::PaletteGroup& palettes, const zelda3::GameData* owner);
21} // namespace yaze::editor::sprite_graphics_context
22
23#endif // YAZE_APP_EDITOR_SPRITE_SPRITE_GRAPHICS_CONTEXT_H_
absl::StatusOr< GraphicsEditContext > Make(const zsprite::Frame &frame, int frame_index, int oam_index, const std::array< uint8_t, 8 > &slots, const gfx::PaletteGroup &palettes, const zelda3::GameData *owner, const std::string &source_label, const std::string &sheet_source)
absl::StatusOr< usage_preview::PreviewImage > RenderCapturedFrame(const zsprite::Frame &frame, const std::array< uint8_t, 8 > &slots, const gfx::PaletteGroup &palettes, const zelda3::GameData *owner)
Namespace for the ZSprite format from Zarby's ZSpriteMaker.
Represents a group of palettes.