comparison src/video/SDL_rendercopy.h @ 2049:5f6550e5184f

Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:15:21 +0000
parents 7387e0514595
children
comparison
equal deleted inserted replaced
2048:6067c7f9a672 2049:5f6550e5184f
31 #define SDL_RENDERCOPY_ADD 0x0040 31 #define SDL_RENDERCOPY_ADD 0x0040
32 #define SDL_RENDERCOPY_MOD 0x0080 32 #define SDL_RENDERCOPY_MOD 0x0080
33 #define SDL_RENDERCOPY_NEAREST 0x0100 33 #define SDL_RENDERCOPY_NEAREST 0x0100
34 34
35 typedef struct { 35 typedef struct {
36 void *src; 36 Uint8 *src;
37 int src_w, src_h; 37 int src_w, src_h;
38 int src_pitch; 38 int src_pitch;
39 void *dst; 39 Uint8 *dst;
40 int dst_w, dst_h; 40 int dst_w, dst_h;
41 int dst_pitch; 41 int dst_pitch;
42 void *aux_data; 42 void *aux_data;
43 int flags; 43 int flags;
44 Uint8 r, g, b, a; 44 Uint8 r, g, b, a;
45 } SDL_RenderCopyData; 45 } SDL_RenderCopyData;
46 46
47 typedef int (*SDL_RenderCopyFunc)(SDL_RenderCopyData *data); 47 typedef int (SDLCALL * SDL_RenderCopyFunc)(SDL_RenderCopyData *data);
48 48
49 extern SDL_RenderCopyFunc SDLCALL SDL_GetRenderCopyFunc(Uint32 src_format, Uint32 dst_format, int modMode, int blendMode, int scaleMode); 49 extern SDL_RenderCopyFunc SDLCALL SDL_GetRenderCopyFunc(Uint32 src_format, Uint32 dst_format, int modMode, int blendMode, int scaleMode);
50 50
51 extern int SDLCALL SDL_RenderCopy_RGB888_RGB888_Scale(SDL_RenderCopyData *data); 51 extern int SDLCALL SDL_RenderCopy_RGB888_RGB888_Scale(SDL_RenderCopyData *data);
52 extern int SDLCALL SDL_RenderCopy_RGB888_RGB888_Blend(SDL_RenderCopyData *data); 52 extern int SDLCALL SDL_RenderCopy_RGB888_RGB888_Blend(SDL_RenderCopyData *data);