aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/graphics/transparent_surface.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-10-06 14:15:51 +0200
committerWillem Jan Palenstijn2013-10-06 17:36:32 +0200
commit8c8b1b7da749d69078b1be88a00d5ba29e64413a (patch)
tree5e5ccae0664e372cadeea6494e5bfb13bd049de4 /engines/wintermute/graphics/transparent_surface.h
parent14cb1f09c0bc2cace830eaa793227f195acb06bc (diff)
downloadscummvm-rg350-8c8b1b7da749d69078b1be88a00d5ba29e64413a.tar.gz
scummvm-rg350-8c8b1b7da749d69078b1be88a00d5ba29e64413a.tar.bz2
scummvm-rg350-8c8b1b7da749d69078b1be88a00d5ba29e64413a.zip
WINTERMUTE: Integrate SDL_rotozoom code for scale/rotoscale
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.h')
-rw-r--r--engines/wintermute/graphics/transparent_surface.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.h b/engines/wintermute/graphics/transparent_surface.h
index 5f44cf0c4c..b887c05fa8 100644
--- a/engines/wintermute/graphics/transparent_surface.h
+++ b/engines/wintermute/graphics/transparent_surface.h
@@ -25,9 +25,6 @@
#include "graphics/surface.h"
#include "engines/wintermute/graphics/transform_struct.h"
-#define ENABLE_BILINEAR 0
-
-
/*
* This code is based on Broken Sword 2.5 engine
*
@@ -53,31 +50,6 @@ struct TransparentSurface : public Graphics::Surface {
void setColorKey(char r, char g, char b);
void disableColorKey();
-#if ENABLE_BILINEAR
- /*
- * Pick color from a point in source and copy it to a pixel in target.
- * The point in the source can be a float - we have subpixel accuracy in the arguments.
- * We do bilinear interpolation to estimate the color of the point even if the
- * point is specuified w/subpixel accuracy.
- *
- * @param projX, projY, point in the source to pick color from.
- * @param dstX, dstY destionation pixel
- * @param *src, *dst pointer to the source and dest surfaces
- */
- static void copyPixelBilinear(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst);
-#else
- /*
- * Pick color from a point in source and copy it to a pixel in target.
- * The point in the source can be a float - we have subpixel accuracy in the arguments.
- * HOWEVER, this particular function just does nearest neighbor.
- * Use copyPixelBilinear if you interpolation.
- *
- * @param projX, projY, point in the source to pick color from.
- * @param dstX, dstY destionation pixel
- * @param *src, *dst pointer to the source and dest surfaces
- */
- static void copyPixelNearestNeighbor(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst);
-#endif
// Enums
/**
@brief The possible flipping parameters for the blit methode.