OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Zoom.h
1 /*
2  * Copyright 2010-2014 OpenXcom Developers.
3  *
4  * This file is part of OpenXcom.
5  *
6  * OpenXcom is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * OpenXcom is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef ZOOM_H
20 #define ZOOM_H
21 
22 #include <SDL.h>
23 #include "OpenGL.h"
24 
25 namespace OpenXcom
26 {
27 
28 
29 class Zoom
30 {
31 
32  public:
34  static void flipWithZoom(SDL_Surface *src, SDL_Surface *dst, int topBlackBand, int bottomBlackBand, int leftBlackBand, int rightBlackBand, OpenGL *glOut);
36  static int _zoomSurfaceY(SDL_Surface * src, SDL_Surface * dst, int flipx, int flipy);
38  static bool haveSSE2();
39 
40 private:
41 
42 };
43 
44 }
45 
46 #endif // ZOOM_H
Definition: Zoom.h:29
static int _zoomSurfaceY(SDL_Surface *src, SDL_Surface *dst, int flipx, int flipy)
Copy src to dst, resizing as needed. Please don't use flipx or flipy as the optimized functions ignor...
Definition: Zoom.cpp:694
static bool haveSSE2()
Check for SSE2 instructions using CPUID.
static void flipWithZoom(SDL_Surface *src, SDL_Surface *dst, int topBlackBand, int bottomBlackBand, int leftBlackBand, int rightBlackBand, OpenGL *glOut)
Flip screen given src and dst; might use software or OpenGL.
Definition: Zoom.cpp:642
Definition: OpenGL.h:57