Draw video if everything bypassed

This commit is contained in:
Aiden
2026-05-12 18:41:48 +10:00
parent 0a8b335048
commit 957c0be05a
3 changed files with 140 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include "GLExtensions.h"
#include <cstdint>
class SimpleMotionRenderer
@@ -9,12 +11,21 @@ public:
bool InitializeGl(unsigned width, unsigned height);
void RenderFrame(uint64_t frameIndex);
void RenderTexture(GLuint texture);
void ShutdownGl();
unsigned Width() const { return mWidth; }
unsigned Height() const { return mHeight; }
private:
bool EnsureTextureProgram();
void DestroyTextureProgram();
static bool CompileShader(GLenum shaderType, const char* source, GLuint& shader);
unsigned mWidth = 0;
unsigned mHeight = 0;
GLuint mTextureProgram = 0;
GLuint mTextureVertexShader = 0;
GLuint mTextureFragmentShader = 0;
GLuint mTextureVertexArray = 0;
};