|
SDL Visual Test
|
#include "SDL_visualtest_process.h"Go to the source code of this file.
Functions | |
| int | SDLVisualTest_ScreenshotProcess (SDL_ProcessInfo *pinfo, char *prefix) |
| int | SDLVisualTest_ScreenshotDesktop (char *filename) |
| int | SDLVisualTest_VerifyScreenshots (char *args, char *test_dir, char *verify_dir) |
Header for the screenshot API.
| int SDLVisualTest_ScreenshotDesktop | ( | char * | filename) |
Takes a screenshot of the desktop and saves it into the file with path filename.
| int SDLVisualTest_ScreenshotProcess | ( | SDL_ProcessInfo * | pinfo, |
| char * | prefix | ||
| ) |
Takes a screenshot of each window owned by the process pinfo and saves it in a file prefix-i.png where prefix is the full path to the file along with a prefix given to each screenshot.
| int SDLVisualTest_VerifyScreenshots | ( | char * | args, |
| char * | test_dir, | ||
| char * | verify_dir | ||
| ) |
Compare a screenshot taken previously with SUT arguments args that is located in test_dir with a verification image that is located in verify_dir.
1.8.4