MCPcopy Create free account
hub / github.com/Samsung/rlottie / Renderer

Method Renderer

example/lottieperf.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38{
39public:
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;

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
totalFrameMethod · 0.45

Tested by

no test coverage detected