summaryrefslogtreecommitdiff
path: root/src/blitter
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/blitter
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/blitter')
-rw-r--r--src/blitter/base.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp
index 6b19c290b..4ec25c38d 100644
--- a/src/blitter/base.hpp
+++ b/src/blitter/base.hpp
@@ -186,6 +186,14 @@ public:
virtual Blitter::PaletteAnimation UsePaletteAnimation() = 0;
/**
+ * Does this blitter require a separate animation buffer from the video backend?
+ */
+ virtual bool NeedsAnimationBuffer()
+ {
+ return false;
+ }
+
+ /**
* Get the name of the blitter, the same as the Factory-instance returns.
*/
virtual const char *GetName() = 0;