summaryrefslogtreecommitdiff
path: root/src/video/opengl.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-21 00:35:35 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commit5ad545dcc16a27cdabd8636f4970ee12b9cec54b (patch)
tree561181a7db959808c8f6cb04d49ab9032a175453 /src/video/opengl.h
parent3a77ade6b25d34890f51931e874fbe0e3b48a744 (diff)
downloadopenttd-5ad545dcc16a27cdabd8636f4970ee12b9cec54b.tar.xz
Codechange: [OpenGL] Only update the dirty parts of the video buffer texture.
Diffstat (limited to 'src/video/opengl.h')
-rw-r--r--src/video/opengl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video/opengl.h b/src/video/opengl.h
index 08ef56b9a..80555ca0b 100644
--- a/src/video/opengl.h
+++ b/src/video/opengl.h
@@ -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.