OpenXcom
1.0
Open-source clone of the original X-Com
|
Static Public Member Functions | |
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. More... | |
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 ignore these parameters. More... | |
static bool | haveSSE2 () |
Check for SSE2 instructions using CPUID. | |
|
static |
Copy src to dst, resizing as needed. Please don't use flipx or flipy as the optimized functions ignore these parameters.
Internal 8-bit Zoomer without smoothing.
Source code originally from SDL_gfx (LGPL) with permission by author.
Zooms 8bit palette/Y 'src' surface to 'dst' surface. Assumes src and dst surfaces are of 8-bit depth. Assumes dst surface was allocated with the correct dimensions.
src | The surface to zoom (input). |
dst | The zoomed surface (output). |
flipx | Flag indicating if the image should be horizontally flipped. |
flipy | Flag indicating if the image should be vertically flipped. |
|
static |
Flip screen given src and dst; might use software or OpenGL.
Wrapper around various software and OpenGL screen buffer pushing functions which zoom.
Basically called just from Screen::flip()
src | The surface to zoom (input). |
dst | The zoomed surface (output). |
topBlackBand | Size of top black band in pixels (letterboxing). |
bottomBlackBand | Size of bottom black band in pixels (letterboxing). |
leftBlackBand | Size of left black band in pixels (letterboxing). |
rightBlackBand | Size of right black band in pixels (letterboxing). |
glOut | OpenGL output. |