Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_render.c @ 2927:2133d2d300fd
SetDrawColor() and SetDrawBlendMode() are optional
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 30 Dec 2008 07:14:11 +0000 |
parents | 133601e3b255 |
children | 8acbb14124c5 |
comparison
equal
deleted
inserted
replaced
2926:27f2b5e7e899 | 2927:2133d2d300fd |
---|---|
69 static void DirectFB_UnlockTexture(SDL_Renderer * renderer, | 69 static void DirectFB_UnlockTexture(SDL_Renderer * renderer, |
70 SDL_Texture * texture); | 70 SDL_Texture * texture); |
71 static void DirectFB_DirtyTexture(SDL_Renderer * renderer, | 71 static void DirectFB_DirtyTexture(SDL_Renderer * renderer, |
72 SDL_Texture * texture, int numrects, | 72 SDL_Texture * texture, int numrects, |
73 const SDL_Rect * rects); | 73 const SDL_Rect * rects); |
74 static int DirectFB_SetDrawColor(SDL_Renderer * renderer); | |
75 static int DirectFB_SetDrawBlendMode(SDL_Renderer * renderer); | |
76 static int DirectFB_RenderPoint(SDL_Renderer * renderer, int x, int y); | 74 static int DirectFB_RenderPoint(SDL_Renderer * renderer, int x, int y); |
77 static int DirectFB_RenderLine(SDL_Renderer * renderer, int x1, int y1, | 75 static int DirectFB_RenderLine(SDL_Renderer * renderer, int x1, int y1, |
78 int x2, int y2); | 76 int x2, int y2); |
79 static int DirectFB_RenderFill(SDL_Renderer * renderer, | 77 static int DirectFB_RenderFill(SDL_Renderer * renderer, |
80 const SDL_Rect * rect); | 78 const SDL_Rect * rect); |
292 renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode; | 290 renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode; |
293 renderer->UpdateTexture = DirectFB_UpdateTexture; | 291 renderer->UpdateTexture = DirectFB_UpdateTexture; |
294 renderer->LockTexture = DirectFB_LockTexture; | 292 renderer->LockTexture = DirectFB_LockTexture; |
295 renderer->UnlockTexture = DirectFB_UnlockTexture; | 293 renderer->UnlockTexture = DirectFB_UnlockTexture; |
296 renderer->DirtyTexture = DirectFB_DirtyTexture; | 294 renderer->DirtyTexture = DirectFB_DirtyTexture; |
297 renderer->SetDrawColor = DirectFB_SetDrawColor; | |
298 renderer->SetDrawBlendMode = DirectFB_SetDrawBlendMode; | |
299 renderer->RenderPoint = DirectFB_RenderPoint; | 295 renderer->RenderPoint = DirectFB_RenderPoint; |
300 renderer->RenderLine = DirectFB_RenderLine; | 296 renderer->RenderLine = DirectFB_RenderLine; |
301 renderer->RenderFill = DirectFB_RenderFill; | 297 renderer->RenderFill = DirectFB_RenderFill; |
302 renderer->RenderCopy = DirectFB_RenderCopy; | 298 renderer->RenderCopy = DirectFB_RenderCopy; |
303 renderer->RenderPresent = DirectFB_RenderPresent; | 299 renderer->RenderPresent = DirectFB_RenderPresent; |
796 SDL_AddDirtyRect(&data->dirty, &rects[i]); | 792 SDL_AddDirtyRect(&data->dirty, &rects[i]); |
797 } | 793 } |
798 } | 794 } |
799 | 795 |
800 static int | 796 static int |
801 DirectFB_SetDrawColor(SDL_Renderer * renderer) | |
802 { | |
803 return 0; | |
804 } | |
805 | |
806 static int | |
807 DirectFB_SetDrawBlendMode(SDL_Renderer * renderer) | |
808 { | |
809 return 0; | |
810 } | |
811 | |
812 static int | |
813 PrepareDraw(SDL_Renderer * renderer) | 797 PrepareDraw(SDL_Renderer * renderer) |
814 { | 798 { |
815 DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata; | 799 DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata; |
816 DFBResult ret; | 800 DFBResult ret; |
817 Uint8 r, g, b, a; | 801 Uint8 r, g, b, a; |