// automatically generated with spright // https://github.com/houmain/spright namespace sprites { struct Sprite { int x, y, w, h; float pivot_x, pivot_y; }; {% for sprite in sprites -%} const Sprite {{ sprite.id }} { {{ sprite.rect.x }}, {{ sprite.rect.y }}, {{ sprite.rect.w }}, {{ sprite.rect.h }}, {{ sprite.pivot.x }}, {{ sprite.pivot.y }} }; {% endfor %} {% for value, indices in tags.anim -%} const Sprite* const {{ value }}[] { {% for index in indices %}&{{ at(sprites, index).id }}, {% endfor %}}; {% endfor %} } // namespace