comparison src/video/SDL_sysvideo.h @ 3536:0267b8b1595c

Added interfaces for batch drawing of points, lines and rects: SDL_DrawPoints() SDL_BlendPoints() SDL_BlendLines() SDL_DrawLines() SDL_FillRects() SDL_BlendRects() SDL_RenderPoints() SDL_RenderLines() SDL_RenderRects() Renamed SDL_RenderFill() to SDL_RenderRect()
author Sam Lantinga <slouken@libsdl.org>
date Wed, 09 Dec 2009 15:56:56 +0000
parents 59ff7a2beb57
children f638ded38b8a
comparison
equal deleted inserted replaced
3535:b403f790df65 3536:0267b8b1595c
88 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 88 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
89 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 89 void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
90 int numrects, const SDL_Rect * rects); 90 int numrects, const SDL_Rect * rects);
91 int (*SetDrawColor) (SDL_Renderer * renderer); 91 int (*SetDrawColor) (SDL_Renderer * renderer);
92 int (*SetDrawBlendMode) (SDL_Renderer * renderer); 92 int (*SetDrawBlendMode) (SDL_Renderer * renderer);
93 int (*RenderPoint) (SDL_Renderer * renderer, int x, int y); 93 int (*RenderPoints) (SDL_Renderer * renderer, const SDL_Point * points,
94 int (*RenderLine) (SDL_Renderer * renderer, int x1, int y1, int x2, 94 int count);
95 int y2); 95 int (*RenderLines) (SDL_Renderer * renderer, const SDL_Point * points,
96 int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect); 96 int count);
97 int (*RenderRects) (SDL_Renderer * renderer, const SDL_Rect ** rects,
98 int count);
97 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, 99 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
98 const SDL_Rect * srcrect, const SDL_Rect * dstrect); 100 const SDL_Rect * srcrect, const SDL_Rect * dstrect);
99 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, 101 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
100 Uint32 format, void * pixels, int pitch); 102 Uint32 format, void * pixels, int pitch);
101 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect, 103 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect,