diff src/video/SDL_renderer_gles.c @ 5152:be02be2ea897

Making the API simpler, removed support for palettized video modes and textures.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:23:43 -0800
parents 5429daf5e3f9
children 1435f8a6425c
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c	Tue Feb 01 20:50:04 2011 -0800
+++ b/src/video/SDL_renderer_gles.c	Tue Feb 01 21:23:43 2011 -0800
@@ -60,13 +60,6 @@
 static int GLES_QueryTexturePixels(SDL_Renderer * renderer,
                                    SDL_Texture * texture, void **pixels,
                                    int *pitch);
-static int GLES_SetTexturePalette(SDL_Renderer * renderer,
-                                  SDL_Texture * texture,
-                                  const SDL_Color * colors, int firstcolor,
-                                  int ncolors);
-static int GLES_GetTexturePalette(SDL_Renderer * renderer,
-                                  SDL_Texture * texture, SDL_Color * colors,
-                                  int firstcolor, int ncolors);
 static int GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
                               const SDL_Rect * rect, const void *pixels,
                               int pitch);
@@ -219,8 +212,6 @@
     renderer->WindowEvent = GLES_WindowEvent;
     renderer->CreateTexture = GLES_CreateTexture;
     renderer->QueryTexturePixels = GLES_QueryTexturePixels;
-    renderer->SetTexturePalette = GLES_SetTexturePalette;
-    renderer->GetTexturePalette = GLES_GetTexturePalette;
     renderer->UpdateTexture = GLES_UpdateTexture;
     renderer->LockTexture = GLES_LockTexture;
     renderer->UnlockTexture = GLES_UnlockTexture;
@@ -467,22 +458,6 @@
     return 0;
 }
 
-static int
-GLES_SetTexturePalette(SDL_Renderer * renderer, SDL_Texture * texture,
-                       const SDL_Color * colors, int firstcolor, int ncolors)
-{
-    SDL_SetError("OpenGL ES does not support paletted textures");
-    return -1;
-}
-
-static int
-GLES_GetTexturePalette(SDL_Renderer * renderer, SDL_Texture * texture,
-                       SDL_Color * colors, int firstcolor, int ncolors)
-{
-    SDL_SetError("OpenGL ES does not support paletted textures");
-    return -1;
-}
-
 static void
 SetupTextureUpdate(GLES_RenderData * renderdata, SDL_Texture * texture,
                    int pitch)