| 38 | { |
| 39 | public: |
| 40 | explicit Renderer(const std::string& filename) |
| 41 | { |
| 42 | _animation = rlottie::Animation::loadFromFile(filename); |
| 43 | _frames = _animation->totalFrame(); |
| 44 | _buffer = std::make_unique<uint32_t[]>(100 * 100); |
| 45 | _surface = rlottie::Surface(_buffer.get(), 100, 100, 100 * 4); |
| 46 | } |
| 47 | void render() |
| 48 | { |
| 49 | if (_cur >= _frames) _cur = 0; |
nothing calls this directly
no test coverage detected