|
SDL 3.0
|
Include dependency graph for SDL_test_compare.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | SDLTest_CompareSurfaces (SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error) |
| int | SDLTest_CompareMemory (const void *actual, size_t size_actual, const void *reference, size_t size_reference) |
Comparison function of SDL test framework.
This code is a part of the SDL test library, not the main SDL library.
Definition in file SDL_test_compare.h.
|
extern |
Compares 2 memory blocks for equality
| actual | Memory used in comparison, displayed on the left |
| size_actual | Size of actual in bytes |
| reference | Reference memory, displayed on the right |
| size_reference | Size of reference in bytes |
| int SDLTest_CompareSurfaces | ( | SDL_Surface * | surface, |
| SDL_Surface * | referenceSurface, | ||
| int | allowable_error | ||
| ) |
Compares a surface and with reference image data for equality
| surface | Surface used in comparison |
| referenceSurface | Test Surface used in comparison |
| allowable_error | Allowable difference (=sum of squared difference for each RGB component) in blending accuracy. |