comparison src/video/SDL_sysvideo.h @ 3435:9f62f47d989b

You can specify the format for pixel data in SDL_RenderReadPixels() and SDL_RenderWritePixels() This code still doesn't quite work yet. :)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Nov 2009 07:13:07 +0000
parents 36cf454ba065
children 4b594623401b
comparison
equal deleted inserted replaced
3434:147d6ef5be03 3435:9f62f47d989b
95 int y2); 95 int y2);
96 int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect); 96 int (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect);
97 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture, 97 int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
98 const SDL_Rect * srcrect, const SDL_Rect * dstrect); 98 const SDL_Rect * srcrect, const SDL_Rect * dstrect);
99 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect, 99 int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
100 void * pixels, int pitch); 100 Uint32 format, void * pixels, int pitch);
101 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect, 101 int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
102 const void * pixels, int pitch); 102 Uint32 format, const void * pixels, int pitch);
103 void (*RenderPresent) (SDL_Renderer * renderer); 103 void (*RenderPresent) (SDL_Renderer * renderer);
104 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 104 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
105 105
106 void (*DestroyRenderer) (SDL_Renderer * renderer); 106 void (*DestroyRenderer) (SDL_Renderer * renderer);
107 107