summaryrefslogtreecommitdiff
path: root/src/video/video_driver.hpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-16 16:43:25 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commite8fc050b6eebddaadf10563c3764ee455687559d (patch)
treed55490546e66f56ac85fcc7ce64842d8c93b9def /src/video/video_driver.hpp
parent320072c8dc03d651f8278a41fc09346c8ed5a174 (diff)
downloadopenttd-e8fc050b6eebddaadf10563c3764ee455687559d.tar.xz
Add: [OpenGL] Support for 8bpp blitters.
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r--src/video/video_driver.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index cc74df202..57945862a 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -99,6 +99,15 @@ public:
}
/**
+ * Has this video driver an efficient code path for palette animated 8-bpp sprites?
+ * @return True if the driver has an efficient code path for 8-bpp.
+ */
+ virtual bool HasEfficient8Bpp() const
+ {
+ return false;
+ }
+
+ /**
* An edit box lost the input focus. Abort character compositing if necessary.
*/
virtual void EditBoxLostFocus() {}