aboutsummaryrefslogtreecommitdiff
path: root/graphics/transparent_surface.h
diff options
context:
space:
mode:
authorTobia Tesan2016-03-31 10:16:19 +0200
committerTobia Tesan2016-12-26 12:28:51 +0100
commitc6ed1625f0027700964feb9c081efa20cbffd8cb (patch)
tree148d35c5d29c5aaf5c490241ec52873f8fc20d54 /graphics/transparent_surface.h
parent42531fb71a3710e190f933c347110e7a468c28e6 (diff)
downloadscummvm-rg350-c6ed1625f0027700964feb9c081efa20cbffd8cb.tar.gz
scummvm-rg350-c6ed1625f0027700964feb9c081efa20cbffd8cb.tar.bz2
scummvm-rg350-c6ed1625f0027700964feb9c081efa20cbffd8cb.zip
WINTERMUTE: Add TFilteringMode to transparent_surface.h
Diffstat (limited to 'graphics/transparent_surface.h')
-rw-r--r--graphics/transparent_surface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/transparent_surface.h b/graphics/transparent_surface.h
index 8654183548..83c65766fb 100644
--- a/graphics/transparent_surface.h
+++ b/graphics/transparent_surface.h
@@ -68,6 +68,11 @@ enum AlphaType {
ALPHA_FULL = 2
};
+enum TFilteringMode {
+ FILTER_NEAREST = 0,
+ FILTER_BILINEAR = 1
+};
+
/**
* A transparent graphics surface, which implements alpha blitting.
*/
@@ -141,8 +146,10 @@ struct TransparentSurface : public Graphics::Surface {
* @param newHeight the resulting height.
* @see TransformStruct
*/
+ template <TFilteringMode filteringMode>
TransparentSurface *scale(uint16 newWidth, uint16 newHeight) const;
+ TransparentSurface *scale(uint16 newWidth, uint16 newHeight) const;
/**
* @brief Rotoscale function; this returns a transformed version of this surface after rotation and
* scaling. Please do not use this if angle == 0, use plain old scaling function.
@@ -150,6 +157,9 @@ struct TransparentSurface : public Graphics::Surface {
* @param transform a TransformStruct wrapping the required info. @see TransformStruct
*
*/
+ template <TFilteringMode filteringMode>
+ TransparentSurface *rotoscale(const TransformStruct &transform) const;
+
TransparentSurface *rotoscale(const TransformStruct &transform) const;
TransparentSurface *convertTo(const PixelFormat &dstFormat, const byte *palette = 0) const;