#include <sprite_oam_tables.h>
Public Member Functions | |
| bool | SetContext (std::string_view project_path, std::string_view assets_path, std::string_view hack_name) |
| std::span< const uint8_t > | GetGraphics (const SpriteOamLayout *layout) |
Private Attributes | |
| std::string | project_path_ |
| std::string | assets_path_ |
| std::string | hack_name_ |
| std::string | resource_ |
| std::vector< uint8_t > | graphics_ |
Definition at line 49 of file sprite_oam_tables.h.
| bool yaze::zelda3::SpritePreviewResourceCache::SetContext | ( | std::string_view | project_path, |
| std::string_view | assets_path, | ||
| std::string_view | hack_name ) |
Definition at line 86 of file sprite_oam_tables.cc.
References assets_path_, graphics_, hack_name_, project_path_, and resource_.
Referenced by yaze::editor::DungeonCanvasViewer::InvalidateExternalSpriteResources(), and yaze::editor::DungeonCanvasViewer::RenderSprites().
| std::span< const uint8_t > yaze::zelda3::SpritePreviewResourceCache::GetGraphics | ( | const SpriteOamLayout * | layout | ) |
Definition at line 101 of file sprite_oam_tables.cc.
References assets_path_, yaze::zelda3::SpriteOamRegistry::GetPreviewOverride(), graphics_, yaze::zelda3::SpriteOamLayout::graphics_resource, hack_name_, project_path_, resource_, and yaze::zelda3::SpriteOamLayout::sprite_id.
Referenced by yaze::editor::DungeonCanvasViewer::RenderSprites().
|
private |
Definition at line 57 of file sprite_oam_tables.h.
Referenced by GetGraphics(), and SetContext().
|
private |
Definition at line 58 of file sprite_oam_tables.h.
Referenced by GetGraphics(), and SetContext().
|
private |
Definition at line 59 of file sprite_oam_tables.h.
Referenced by GetGraphics(), and SetContext().
|
private |
Definition at line 60 of file sprite_oam_tables.h.
Referenced by GetGraphics(), and SetContext().
|
private |
Definition at line 61 of file sprite_oam_tables.h.
Referenced by GetGraphics(), and SetContext().