Codechange: [OpenGL] Only update the dirty parts of the video buffer texture.

This commit is contained in:
Michael Lutz
2021-02-21 00:35:35 +01:00
parent 3a77ade6b2
commit 5ad545dcc1
4 changed files with 20 additions and 10 deletions

View File

@@ -13,6 +13,7 @@
#define VIDEO_OPENGL_H
#include "../core/alloc_type.hpp"
#include "../core/geometry_type.hpp"
typedef void (*OGLProc)();
typedef OGLProc (*GetOGLProcAddressProc)(const char *proc);
@@ -42,7 +43,7 @@ public:
static void Destroy();
bool Resize(int w, int h, bool force = false);
void Paint();
void Paint(Rect update_rect);
/**
* Get a pointer to the memory for the video driver to draw to.