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).
| Name | Kind | Items |
|---|---|---|
FrameData | struct | 2 |
AnimatedSprite | class | 20 |
ParametricPortrait | class | 7 |
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 texint delay_ms = 100class AnimatedSprite 20
AnimatedSprite() = defaultAnimatedSprite(const AnimatedSprite&) = deleteAnimatedSprite& operator=(const AnimatedSprite&) = deleteAnimatedSprite(AnimatedSprite&&) = deleteAnimatedSprite& operator=(AnimatedSprite&&) = deletevoid 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&) = deleteParametricPortrait& operator=(const ParametricPortrait&) = deletevoid 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) constSourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.