diff 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
line wrap: on
line diff
--- a/src/video/photon/SDL_photon_render.c	Fri Apr 24 03:46:54 2009 +0000
+++ b/src/video/photon/SDL_photon_render.c	Tue Apr 28 04:30:52 2009 +0000
@@ -35,24 +35,24 @@
 #include "SDL_photon.h"
 
 static SDL_Renderer* photon_createrenderer(SDL_Window* window, Uint32 flags);
-static int photon_displaymodechanged(SDL_Renderer* renderer);
-static int photon_activaterenderer(SDL_Renderer* renderer);
-static int photon_createtexture(SDL_Renderer* renderer, SDL_Texture* texture);
-static int photon_querytexturepixels(SDL_Renderer* renderer, SDL_Texture* texture, void** pixels, int* pitch);
-static int photon_settexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Color* colors, int firstcolor, int ncolors);
-static int photon_gettexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Color* colors, int firstcolor, int ncolors);
-static int photon_settexturecolormod(SDL_Renderer* renderer, SDL_Texture* texture);
-static int photon_settexturealphamod(SDL_Renderer* renderer, SDL_Texture* texture);
-static int photon_settextureblendmode(SDL_Renderer* renderer, SDL_Texture* texture);
-static int photon_settexturescalemode(SDL_Renderer* renderer, SDL_Texture* texture);
-static int photon_updatetexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, const void* pixels, int pitch);
-static int photon_locktexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, int markDirty, void** pixels, int* pitch);
+static int  photon_displaymodechanged(SDL_Renderer* renderer);
+static int  photon_activaterenderer(SDL_Renderer* renderer);
+static int  photon_createtexture(SDL_Renderer* renderer, SDL_Texture* texture);
+static int  photon_querytexturepixels(SDL_Renderer* renderer, SDL_Texture* texture, void** pixels, int* pitch);
+static int  photon_settexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Color* colors, int firstcolor, int ncolors);
+static int  photon_gettexturepalette(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Color* colors, int firstcolor, int ncolors);
+static int  photon_settexturecolormod(SDL_Renderer* renderer, SDL_Texture* texture);
+static int  photon_settexturealphamod(SDL_Renderer* renderer, SDL_Texture* texture);
+static int  photon_settextureblendmode(SDL_Renderer* renderer, SDL_Texture* texture);
+static int  photon_settexturescalemode(SDL_Renderer* renderer, SDL_Texture* texture);
+static int  photon_updatetexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, const void* pixels, int pitch);
+static int  photon_locktexture(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* rect, int markDirty, void** pixels, int* pitch);
 static void photon_unlocktexture(SDL_Renderer* renderer, SDL_Texture* texture);
 static void photon_dirtytexture(SDL_Renderer* renderer, SDL_Texture* texture, int numrects, const SDL_Rect* rects);
-static int photon_renderpoint(SDL_Renderer* renderer, int x, int y);
-static int photon_renderline(SDL_Renderer* renderer, int x1, int y1, int x2, int y2);
-static int photon_renderfill(SDL_Renderer* renderer, const SDL_Rect* rect);
-static int photon_rendercopy(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* srcrect, const SDL_Rect* dstrect);
+static int  photon_renderpoint(SDL_Renderer* renderer, int x, int y);
+static int  photon_renderline(SDL_Renderer* renderer, int x1, int y1, int x2, int y2);
+static int  photon_renderfill(SDL_Renderer* renderer, const SDL_Rect* rect);
+static int  photon_rendercopy(SDL_Renderer* renderer, SDL_Texture* texture, const SDL_Rect* srcrect, const SDL_Rect* dstrect);
 static void photon_renderpresent(SDL_Renderer* renderer);
 static void photon_destroytexture(SDL_Renderer* renderer, SDL_Texture* texture);
 static void photon_destroyrenderer(SDL_Renderer* renderer);