Ported surface tests.

This commit is contained in:
Markus Kauppila 2011-07-09 17:55:35 +03:00
parent 63d7c3faa6
commit d0e9372d99
15 changed files with 424 additions and 14 deletions

View file

@ -7,12 +7,9 @@
*/
#include "SDL.h"
#include "../SDL_at.h"
#include "common.h"
/**
* @brief Compares a surface and a surface image for equality.
*/

View file

@ -10,6 +10,7 @@
#ifndef COMMON_H
# define COMMON_H
#include "SDL/SDL.h"
# define FORMAT SDL_PIXELFORMAT_ARGB8888
# define AMASK 0xff000000 /**< Alpha bit mask. */

View file

@ -1,5 +1,7 @@
/* GIMP RGB C-Source image dump (blit.c) */
#include "common.h"
static const SurfaceImage_t img_blit = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"

View file

@ -1,4 +1,5 @@
/* GIMP RGB C-Source image dump (alpha.c) */
#include "common.h"
static const SurfaceImage_t img_blendAdd = {
80, 60, 3,

View file

@ -1,4 +1,5 @@
/* GIMP RGBA C-Source image dump (face.c) */
#include "common.h"
static const SurfaceImage_t img_face = {
32, 32, 4,

View file

@ -1,4 +1,5 @@
/* GIMP RGB C-Source image dump (primitives.c) */
#include "common.h"
static const SurfaceImage_t img_primitives = {
80, 60, 3,

View file

@ -1,4 +1,5 @@
/* GIMP RGB C-Source image dump (alpha.c) */
#include "common.h"
static const SurfaceImage_t img_blend = {
80, 60, 3,