mitiru::sprite

Namespace catalog extracted from docs/API_CATALOG.md (3 types, 31 items).

Namespace catalog extracted from docs/API_CATALOG.md (3 types, 31 items).

NameKindItems
FrameDatastruct2
AnimatedSpriteclass20
ParametricPortraitclass7

Free functions and typedefs

using GifDecoder = std::function<std::vector<FrameData>(const std::filesystem::path&)>;
using AsepriteDecoder = std::function<std::vector<FrameData>(const std::filesystem::path&)>;
struct FrameData 2
mitiru::render::Texture tex
int delay_ms = 100
class AnimatedSprite 20
AnimatedSprite() = default
AnimatedSprite(const AnimatedSprite&) = delete
AnimatedSprite& operator=(const AnimatedSprite&) = delete
AnimatedSprite(AnimatedSprite&&) = delete
AnimatedSprite& operator=(AnimatedSprite&&) = delete
void setGifDecoder(GifDecoder decoder)
void setAsepriteDecoder(AsepriteDecoder decoder)
void loadGIF(const std::filesystem::path& path)
void loadAseprite(const std::filesystem::path& path)
void loadFromFrames(std::vector<mitiru::render::Texture> textures, std::vector<int> delays_ms)
void play()
void pause()
void setLoop(bool loop)
void setSpeed(float speed)
void setOnLoop(std::function<void()> cb)
void update(float dt)
[[nodiscard]] mitiru::render::Texture currentFrame() const
[[nodiscard]] std::size_t frameIndex() const
[[nodiscard]] bool isPlaying() const
[[nodiscard]] static AnimatedSprite fromStbGIF(const std::filesystem::path& path)
class ParametricPortrait 7
using LoaderFn = std::function<mitiru::render::Texture(const std::filesystem::path&)>;
ParametricPortrait( std::array<Axis, N_AXES> axes, std::string pathTemplate, std::filesystem::path baseDir, LoaderFn loader)
ParametricPortrait(const ParametricPortrait&) = delete
ParametricPortrait& operator=(const ParametricPortrait&) = delete
void addOverride(std::string_view flag, std::string_view overridePath)
void setOverrideFlag(std::string_view flag, bool on)
const mitiru::render::Texture& select(std::array<float, N_AXES> values) const

Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.