21 lines
367 B
C++
21 lines
367 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
class SimpleMotionRenderer
|
|
{
|
|
public:
|
|
SimpleMotionRenderer() = default;
|
|
|
|
bool InitializeGl(unsigned width, unsigned height);
|
|
void RenderFrame(uint64_t frameIndex);
|
|
void ShutdownGl();
|
|
|
|
unsigned Width() const { return mWidth; }
|
|
unsigned Height() const { return mHeight; }
|
|
|
|
private:
|
|
unsigned mWidth = 0;
|
|
unsigned mHeight = 0;
|
|
};
|