comparison src/video/photon/SDL_photon_render.c @ 3108:aa1897bee1e9

Continue working on QNX Photon with OpenGL ES support
author Mike Gorchak <lestat@i.com.ua>
date Tue, 28 Apr 2009 04:30:52 +0000
parents cad1aefa2ed9
children 7f684f249ec9
comparison
equal deleted inserted replaced
3107:3cf236d3cd81 3108:aa1897bee1e9
33 33
34 #include "SDL_photon_render.h" 34 #include "SDL_photon_render.h"
35 #include "SDL_photon.h" 35 #include "SDL_photon.h"
36 36
37 static SDL_Renderer* photon_createrenderer(SDL_Window* window, Uint32 flags); 37 static SDL_Renderer* photon_createrenderer(SDL_Window* window, Uint32 flags);
38 static int photon_displaymodechanged(SDL_Renderer* renderer); 38 static int photon_displaymodechanged(SDL_Renderer* renderer);
39 static int photon_activaterenderer(SDL_Renderer* renderer); 39 static int photon_activaterenderer(SDL_Renderer* renderer);
40 static int photon_createtexture(SDL_Renderer* renderer, SDL_Texture* texture); 40 static int photon_createtexture(SDL_Renderer* renderer, SDL_Texture* texture);
41 static int photon_querytexturepixels(SDL_Renderer* renderer, SDL_Texture* texture, void** pixels, int* pitch); 41 static int photon_querytexturepixels(SDL_Renderer* renderer, SDL_Texture* texture, void** pixels, int* pitch);
42 static int photon_settexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Color* colors, int firstcolor, int ncolors); 42 static int photon_settexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Color* colors, int firstcolor, int ncolors);
43 static int photon_gettexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Color* colors, int firstcolor, int ncolors); 43 static int photon_gettexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Color* colors, int firstcolor, int ncolors);
44 static int photon_settexturecolormod(SDL_Renderer* renderer, SDL_Texture* texture); 44 static int photon_settexturecolormod(SDL_Renderer* renderer, SDL_Texture* texture);
45 static int photon_settexturealphamod(SDL_Renderer* renderer, SDL_Texture* texture); 45 static int photon_settexturealphamod(SDL_Renderer* renderer, SDL_Texture* texture);
46 static int photon_settextureblendmode(SDL_Renderer* renderer, SDL_Texture* texture); 46 static int photon_settextureblendmode(SDL_Renderer* renderer, SDL_Texture* texture);
47 static int photon_settexturescalemode(SDL_Renderer* renderer, SDL_Texture* texture); 47 static int photon_settexturescalemode(SDL_Renderer* renderer, SDL_Texture* texture);
48 static int photon_updatetexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, const void* pixels, int pitch); 48 static int photon_updatetexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, const void* pixels, int pitch);
49 static int photon_locktexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, int markDirty, void** pixels, int* pitch); 49 static int photon_locktexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, int markDirty, void** pixels, int* pitch);
50 static void photon_unlocktexture(SDL_Renderer* renderer, SDL_Texture* texture); 50 static void photon_unlocktexture(SDL_Renderer* renderer, SDL_Texture* texture);
51 static void photon_dirtytexture(SDL_Renderer* renderer, SDL_Texture* texture, int numrects, const SDL_Rect* rects); 51 static void photon_dirtytexture(SDL_Renderer* renderer, SDL_Texture* texture, int numrects, const SDL_Rect* rects);
52 static int photon_renderpoint(SDL_Renderer* renderer, int x, int y); 52 static int photon_renderpoint(SDL_Renderer* renderer, int x, int y);
53 static int photon_renderline(SDL_Renderer* renderer, int x1, int y1, int x2, int y2); 53 static int photon_renderline(SDL_Renderer* renderer, int x1, int y1, int x2, int y2);
54 static int photon_renderfill(SDL_Renderer* renderer, const SDL_Rect* rect); 54 static int photon_renderfill(SDL_Renderer* renderer, const SDL_Rect* rect);
55 static int photon_rendercopy(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* srcrect, const SDL_Rect* dstrect); 55 static int photon_rendercopy(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* srcrect, const SDL_Rect* dstrect);
56 static void photon_renderpresent(SDL_Renderer* renderer); 56 static void photon_renderpresent(SDL_Renderer* renderer);
57 static void photon_destroytexture(SDL_Renderer* renderer, SDL_Texture* texture); 57 static void photon_destroytexture(SDL_Renderer* renderer, SDL_Texture* texture);
58 static void photon_destroyrenderer(SDL_Renderer* renderer); 58 static void photon_destroyrenderer(SDL_Renderer* renderer);
59 59
60 SDL_RenderDriver photon_renderdriver= 60 SDL_RenderDriver photon_renderdriver=