Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SDL_test_compare.h File Reference
Include file for SDL test framework. More...
Go to the source code of this file.
Functions | |
| int | SDLTest_CompareSurfaces (SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error) |
| Compares a surface and with reference image data for equality. | |
Detailed Description
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
Definition in file SDL_test_compare.h.
Function Documentation
| int SDLTest_CompareSurfaces | ( | SDL_Surface * | surface, |
| SDL_Surface * | referenceSurface, | ||
| int | allowable_error | ||
| ) |
Compares a surface and with reference image data for equality.
- Parameters:
-
surface Surface used in comparison referenceSurface Test Surface used in comparison allowable_error Allowable difference (squared) in blending accuracy.
- Returns:
- 0 if comparison succeeded, >0 (=number of pixels where comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ.
Generated on Tue Jul 12 2022 13:56:25 by
1.7.2