summaryrefslogtreecommitdiff
path: root/src/video/video_driver.hpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-16 16:43:42 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commit200be7d20cf736db309c70f7eae35268d812f706 (patch)
treea8f018899017f7cddd8c3fdecee478f5d18fb470 /src/video/video_driver.hpp
parent01ef44fa4ff800c03994d904a8eef445f1871b32 (diff)
downloadopenttd-200be7d20cf736db309c70f7eae35268d812f706.tar.xz
Add: [OpenGL] Support for a separate animation buffer that stores the palette values of the screen in addition to the colour buffer.
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r--src/video/video_driver.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index 74bb20f4c..0b5c6f6fd 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -122,6 +122,24 @@ public:
}
/**
+ * Does this video driver support a separate animation buffer in addition to the colour buffer?
+ * @return True if a separate animation buffer is supported.
+ */
+ virtual bool HasAnimBuffer()
+ {
+ return false;
+ }
+
+ /**
+ * Get a pointer to the animation buffer of the video back-end.
+ * @return Pointer to the buffer or nullptr if no animation buffer is supported.
+ */
+ virtual uint8 *GetAnimBuffer()
+ {
+ return nullptr;
+ }
+
+ /**
* An edit box lost the input focus. Abort character compositing if necessary.
*/
virtual void EditBoxLostFocus() {}