comparison src/video/SDL_blit.h @ 2266:e61ad15a205f

More work in progress integrating SDL_Surface and the new SDL_Texture API
author Sam Lantinga <slouken@libsdl.org>
date Sat, 18 Aug 2007 01:44:21 +0000
parents 900c35d8e8fd
children c785543d1843
comparison
equal deleted inserted replaced
2265:265bb136af92 2266:e61ad15a205f
39 39
40 #include "SDL_cpuinfo.h" 40 #include "SDL_cpuinfo.h"
41 #include "SDL_endian.h" 41 #include "SDL_endian.h"
42 42
43 /* SDL blit copy flags */ 43 /* SDL blit copy flags */
44 #define SDL_COPY_MODULATE_COLOR 0x0001 44 #define SDL_COPY_MODULATE_COLOR 0x00000001
45 #define SDL_COPY_MODULATE_ALPHA 0x0002 45 #define SDL_COPY_MODULATE_ALPHA 0x00000002
46 #define SDL_COPY_MASK 0x0010 46 #define SDL_COPY_MASK 0x00000010
47 #define SDL_COPY_BLEND 0x0020 47 #define SDL_COPY_BLEND 0x00000020
48 #define SDL_COPY_ADD 0x0040 48 #define SDL_COPY_ADD 0x00000040
49 #define SDL_COPY_MOD 0x0080 49 #define SDL_COPY_MOD 0x00000080
50 #define SDL_COPY_COLORKEY 0x0100 50 #define SDL_COPY_COLORKEY 0x00000100
51 #define SDL_COPY_NEAREST 0x0200 51 #define SDL_COPY_NEAREST 0x00000200
52 #define SDL_COPY_RLE_DESIRED 0x00001000
53 #define SDL_COPY_RLE_COLORKEY 0x00002000
54 #define SDL_COPY_RLE_ALPHAKEY 0x00004000
52 55
53 /* SDL blit CPU flags */ 56 /* SDL blit CPU flags */
54 #define SDL_CPU_ANY 0x0000 57 #define SDL_CPU_ANY 0x00000000
55 #define SDL_CPU_MMX 0x0001 58 #define SDL_CPU_MMX 0x00000001
56 #define SDL_CPU_3DNOW 0x0002 59 #define SDL_CPU_3DNOW 0x00000002
57 #define SDL_CPU_SSE 0x0004 60 #define SDL_CPU_SSE 0x00000004
58 #define SDL_CPU_SSE2 0x0008 61 #define SDL_CPU_SSE2 0x00000008
59 #define SDL_CPU_ALTIVEC_PREFETCH 0x0010 62 #define SDL_CPU_ALTIVEC_PREFETCH 0x00000010
60 #define SDL_CPU_ALTIVEC_NOPREFETCH 0x0020 63 #define SDL_CPU_ALTIVEC_NOPREFETCH 0x00000020
61 64
62 typedef struct { 65 typedef struct {
63 Uint8 *src; 66 Uint8 *src;
64 int src_w, src_h; 67 int src_w, src_h;
65 int src_pitch; 68 int src_pitch;