This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
5,667 additions
and 3 deletions.
- +6 −0 VisualC/SDLtest/SDLtest_VS2010.vcxproj
- +6 −0 VisualC/SDLtest/SDLtest_VS2012.vcxproj
- +1 −0 include/SDL_test.h
- +81 −0 include/SDL_test_images.h
- +3 −3 src/test/SDL_test_assert.c
- +1,480 −0 src/test/SDL_test_imageBlit.c
- +2,714 −0 src/test/SDL_test_imageBlitBlend.c
- +220 −0 src/test/SDL_test_imageFace.c
- +487 −0 src/test/SDL_test_imagePrimitives.c
- +669 −0 src/test/SDL_test_imagePrimitivesBlend.c
@@ -0,0 +1,81 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
arising from the use of this software. | ||
Permission is granted to anyone to use this software for any purpose, | ||
including commercial applications, and to alter it and redistribute it | ||
freely, subject to the following restrictions: | ||
1. The origin of this software must not be misrepresented; you must not | ||
claim that you wrote the original software. If you use this software | ||
in a product, an acknowledgment in the product documentation would be | ||
appreciated but is not required. | ||
2. Altered source versions must be plainly marked as such, and must not be | ||
misrepresented as being the original software. | ||
3. This notice may not be removed or altered from any source distribution. | ||
*/ | ||
|
||
/** | ||
* \file SDL_test_images.h | ||
* | ||
* Include file for SDL test framework. | ||
* | ||
* This code is a part of the SDL2_test library, not the main SDL library. | ||
*/ | ||
|
||
/* | ||
Defines some images for tests. | ||
*/ | ||
|
||
#ifndef _SDL_test_images_h | ||
#define _SDL_test_images_h | ||
|
||
#include "begin_code.h" | ||
/* Set up for C function definitions, even when using C++ */ | ||
#ifdef __cplusplus | ||
/* *INDENT-OFF* */ | ||
extern "C" { | ||
/* *INDENT-ON* */ | ||
#endif | ||
|
||
|
||
/** | ||
*Type for test images. | ||
*/ | ||
typedef struct SDLTest_SurfaceImage_s { | ||
int width; | ||
int height; | ||
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ | ||
const unsigned char pixel_data[]; | ||
} SDLTest_SurfaceImage_t; | ||
|
||
/* Test images */ | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlit; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitColor; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone; | ||
const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll; | ||
const SDLTest_SurfaceImage_t SDLTest_ImageFace; | ||
const SDLTest_SurfaceImage_t SDLTest_imagePrimitives; | ||
const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend; | ||
|
||
/* Ends C function definitions when using C++ */ | ||
#ifdef __cplusplus | ||
/* *INDENT-OFF* */ | ||
} | ||
/* *INDENT-ON* */ | ||
#endif | ||
#include "close_code.h" | ||
|
||
#endif /* _SDL_test_images_h */ | ||
|
||
/* vi: set ts=4 sw=4 expandtab: */ |
Oops, something went wrong.