Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 3596:f638ded38b8a
Added SDL_RenderClear() as a fast method of clearing the screen to the drawing color.
Renamed SDL_RenderPoint() and SDL_RenderLine() to SDL_RenderDrawPoint() and SDL_RenderDrawLine().
Added API for rectangle drawing (as opposed to filling)
Added placeholder API functions for circles and ellipses ... I'm not sure whether these will stay.
Optimized software line drawing quite a bit.
Added support for Wu's anti-aliased line drawing, currently disabled by default.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 23 Dec 2009 01:55:00 +0000 |
parents | 0267b8b1595c |
children | 8e961ef35d4b |
comparison
equal
deleted
inserted
replaced
3595:b7c6828d4039 | 3596:f638ded38b8a |
---|---|
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 (*RenderPoints) (SDL_Renderer * renderer, const SDL_Point * points, | 93 int (*RenderClear) (SDL_Renderer * renderer); |
94 int count); | 94 int (*RenderDrawPoints) (SDL_Renderer * renderer, const SDL_Point * points, |
95 int (*RenderLines) (SDL_Renderer * renderer, const SDL_Point * points, | 95 int count); |
96 int count); | 96 int (*RenderDrawLines) (SDL_Renderer * renderer, const SDL_Point * points, |
97 int (*RenderRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, | 97 int count); |
98 int count); | 98 int (*RenderDrawRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, |
99 int count); | |
100 int (*RenderFillRects) (SDL_Renderer * renderer, const SDL_Rect ** rects, | |
101 int count); | |
102 int (*RenderDrawEllipse) (SDL_Renderer * renderer, int x, int y, | |
103 int w, int h); | |
104 int (*RenderFillEllipse) (SDL_Renderer * renderer, int x, int y, | |
105 int w, int h); | |
99 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, | 106 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, |
100 const SDL_Rect * srcrect, const SDL_Rect * dstrect); | 107 const SDL_Rect * srcrect, const SDL_Rect * dstrect); |
101 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, | 108 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, |
102 Uint32 format, void * pixels, int pitch); | 109 Uint32 format, void * pixels, int pitch); |
103 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect, | 110 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect, |