comparison src/render/opengles2/SDL_render_gles2.c @ 5216:25ad4a50d34f

OpenGL ES 2.0 rendering LIVES!
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Feb 2011 19:12:55 -0800
parents 7b6101f3ea58
children b0797947dd1c
comparison
equal deleted inserted replaced
5215:7b6101f3ea58 5216:25ad4a50d34f
784 *************************************************************************************************/ 784 *************************************************************************************************/
785 785
786 static int GLES2_RenderClear(SDL_Renderer *renderer); 786 static int GLES2_RenderClear(SDL_Renderer *renderer);
787 static int GLES2_RenderDrawPoints(SDL_Renderer *renderer, const SDL_Point *points, int count); 787 static int GLES2_RenderDrawPoints(SDL_Renderer *renderer, const SDL_Point *points, int count);
788 static int GLES2_RenderDrawLines(SDL_Renderer *renderer, const SDL_Point *points, int count); 788 static int GLES2_RenderDrawLines(SDL_Renderer *renderer, const SDL_Point *points, int count);
789 static int GLES2_RenderDrawRects(SDL_Renderer *renderer, const SDL_Rect **rects, int count);
790 static int GLES2_RenderFillRects(SDL_Renderer *renderer, const SDL_Rect **rects, int count); 789 static int GLES2_RenderFillRects(SDL_Renderer *renderer, const SDL_Rect **rects, int count);
791 static int GLES2_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, 790 static int GLES2_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect,
792 const SDL_Rect *dstrect); 791 const SDL_Rect *dstrect);
793 static void GLES2_RenderPresent(SDL_Renderer *renderer); 792 static void GLES2_RenderPresent(SDL_Renderer *renderer);
794 793
1172 return NULL; 1171 return NULL;
1173 } 1172 }
1174 if (hasCompiler) 1173 if (hasCompiler)
1175 rdata->shader_formats[nFormats - 1] = (GLenum)-1; 1174 rdata->shader_formats[nFormats - 1] = (GLenum)-1;
1176 #endif /* ZUNE_HD */ 1175 #endif /* ZUNE_HD */
1176
1177 rdata->updateSize = SDL_TRUE;
1177 1178
1178 /* Populate the function pointers for the module */ 1179 /* Populate the function pointers for the module */
1179 renderer->WindowEvent = &GLES2_WindowEvent; 1180 renderer->WindowEvent = &GLES2_WindowEvent;
1180 renderer->CreateTexture = &GLES2_CreateTexture; 1181 renderer->CreateTexture = &GLES2_CreateTexture;
1181 renderer->UpdateTexture = &GLES2_UpdateTexture; 1182 renderer->UpdateTexture = &GLES2_UpdateTexture;