comparison src/video/SDL_sysvideo.h @ 1985:8055185ae4ed

Added source color and alpha modulation support. Added perl script to generate optimized render copy functions.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 03:17:39 +0000
parents 3f21778e7433
children c9aa6bcb26f3
comparison
equal deleted inserted replaced
1984:b910bcabec26 1985:8055185ae4ed
42 42
43 Uint32 format; /**< The pixel format of the texture */ 43 Uint32 format; /**< The pixel format of the texture */
44 int access; /**< SDL_TextureAccess */ 44 int access; /**< SDL_TextureAccess */
45 int w; /**< The width of the texture */ 45 int w; /**< The width of the texture */
46 int h; /**< The height of the texture */ 46 int h; /**< The height of the texture */
47 int modMode; /**< The texture modulation mode */
48 int blendMode; /**< The texture blend mode */
49 int scaleMode; /**< The texture scale mode */
50 Uint8 r, g, b, a; /**< Texture modulation values */
47 51
48 SDL_Renderer *renderer; 52 SDL_Renderer *renderer;
49 53
50 void *driverdata; /**< Driver specific texture representation */ 54 void *driverdata; /**< Driver specific texture representation */
51 55
64 const SDL_Color * colors, int firstcolor, 68 const SDL_Color * colors, int firstcolor,
65 int ncolors); 69 int ncolors);
66 int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, 70 int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
67 SDL_Color * colors, int firstcolor, 71 SDL_Color * colors, int firstcolor,
68 int ncolors); 72 int ncolors);
73 int (*SetTextureColorMod) (SDL_Renderer * renderer,
74 SDL_Texture * texture);
75 int (*SetTextureAlphaMod) (SDL_Renderer * renderer,
76 SDL_Texture * texture);
77 int (*SetTextureBlendMode) (SDL_Renderer * renderer,
78 SDL_Texture * texture);
79 int (*SetTextureScaleMode) (SDL_Renderer * renderer,
80 SDL_Texture * texture);
69 int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 81 int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
70 const SDL_Rect * rect, const void *pixels, 82 const SDL_Rect * rect, const void *pixels,
71 int pitch); 83 int pitch);
72 int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 84 int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
73 const SDL_Rect * rect, int markDirty, void **pixels, 85 const SDL_Rect * rect, int markDirty, void **pixels,
74 int *pitch); 86 int *pitch);
75 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 87 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
76 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 88 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
77 int numrects, const SDL_Rect * rects); 89 int numrects, const SDL_Rect * rects);
78 int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect, 90 int (*RenderFill) (SDL_Renderer * renderer, Uint8 r, Uint8 g, Uint8 b,
79 Uint32 color); 91 Uint8 a, const SDL_Rect * rect);
80 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, 92 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
81 const SDL_Rect * srcrect, const SDL_Rect * dstrect, 93 const SDL_Rect * srcrect, const SDL_Rect * dstrect);
82 int blendMode, int scaleMode);
83 void (*RenderPresent) (SDL_Renderer * renderer); 94 void (*RenderPresent) (SDL_Renderer * renderer);
84 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 95 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
85 96
86 void (*DestroyRenderer) (SDL_Renderer * renderer); 97 void (*DestroyRenderer) (SDL_Renderer * renderer);
87 98