diff src/video/SDL_renderer_gles.c @ 5144:31e7f523ab3d

Making the API simpler, texture color and alpha modulation are supported by all renderers.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 31 Jan 2011 23:37:30 -0800
parents e743b9c3f6d6
children c8e049de174c
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c	Mon Jan 31 23:23:57 2011 -0800
+++ b/src/video/SDL_renderer_gles.c	Mon Jan 31 23:37:30 2011 -0800
@@ -67,10 +67,6 @@
 static int GLES_GetTexturePalette(SDL_Renderer * renderer,
                                   SDL_Texture * texture, SDL_Color * colors,
                                   int firstcolor, int ncolors);
-static int GLES_SetTextureColorMod(SDL_Renderer * renderer,
-                                   SDL_Texture * texture);
-static int GLES_SetTextureAlphaMod(SDL_Renderer * renderer,
-                                   SDL_Texture * texture);
 static int GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
                               const SDL_Rect * rect, const void *pixels,
                               int pitch);
@@ -104,8 +100,6 @@
      "opengl_es",
      (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_PRESENTDISCARD |
       SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED),
-     (SDL_TEXTUREMODULATE_NONE | SDL_TEXTUREMODULATE_COLOR |
-      SDL_TEXTUREMODULATE_ALPHA),
      {
       /* OpenGL ES 1.x supported formats list */
       SDL_PIXELFORMAT_RGBA4444,
@@ -231,8 +225,6 @@
     renderer->QueryTexturePixels = GLES_QueryTexturePixels;
     renderer->SetTexturePalette = GLES_SetTexturePalette;
     renderer->GetTexturePalette = GLES_GetTexturePalette;
-    renderer->SetTextureColorMod = GLES_SetTextureColorMod;
-    renderer->SetTextureAlphaMod = GLES_SetTextureAlphaMod;
     renderer->UpdateTexture = GLES_UpdateTexture;
     renderer->LockTexture = GLES_LockTexture;
     renderer->UnlockTexture = GLES_UnlockTexture;
@@ -497,18 +489,6 @@
 }
 
 static int
-GLES_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
-{
-    return 0;
-}
-
-static int
-GLES_SetTextureAlphaMod(SDL_Renderer * renderer, SDL_Texture * texture)
-{
-    return 0;
-}
-
-static int
 GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
                    const SDL_Rect * rect, const void *pixels, int pitch)
 {