Mercurial > sdl-ios-xcode
diff src/video/nds/SDL_ndsrender.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/nds/SDL_ndsrender.c Mon Jan 31 23:23:57 2011 -0800 +++ b/src/video/nds/SDL_ndsrender.c Mon Jan 31 23:37:30 2011 -0800 @@ -50,10 +50,6 @@ static int NDS_GetTexturePalette(SDL_Renderer * renderer, SDL_Texture * texture, SDL_Color * colors, int firstcolor, int ncolors); -static int NDS_SetTextureColorMod(SDL_Renderer * renderer, - SDL_Texture * texture); -static int NDS_SetTextureAlphaMod(SDL_Renderer * renderer, - SDL_Texture * texture); static int NDS_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, const SDL_Rect * rect, const void *pixels, int pitch); @@ -76,7 +72,6 @@ NDS_CreateRenderer, {"nds", /* char* name */ (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_PRESENTVSYNC), /* u32 flags */ - (SDL_TEXTUREMODULATE_NONE), /* u32 mod_modes */ 3, /* u32 num_texture_formats */ { SDL_PIXELFORMAT_INDEX8, @@ -175,14 +170,11 @@ renderer->QueryTexturePixels = NDS_QueryTexturePixels; renderer->SetTexturePalette = NDS_SetTexturePalette; renderer->GetTexturePalette = NDS_GetTexturePalette; - renderer->SetTextureColorMod = NDS_SetTextureColorMod; - renderer->SetTextureAlphaMod = NDS_SetTextureAlphaMod; renderer->UpdateTexture = NDS_UpdateTexture; renderer->LockTexture = NDS_LockTexture; renderer->UnlockTexture = NDS_UnlockTexture; renderer->DestroyTexture = NDS_DestroyTexture; - renderer->info.mod_modes = NDS_RenderDriver.info.mod_modes; renderer->info.num_texture_formats = NDS_RenderDriver.info.num_texture_formats; SDL_memcpy(renderer->info.texture_formats, @@ -557,18 +549,4 @@ return 0; } -static int -NDS_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture) -{ - /* stub! */ - return 0; -} - -static int -NDS_SetTextureAlphaMod(SDL_Renderer * renderer, SDL_Texture * texture) -{ - /* stub! */ - return 0; -} - /* vi: set ts=4 sw=4 expandtab: */