comparison src/video/nds/SDL_ndsrender.c @ 5145:c8e049de174c

Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 12:19:46 -0800
parents 31e7f523ab3d
children be02be2ea897
comparison
equal deleted inserted replaced
5144:31e7f523ab3d 5145:c8e049de174c
69 69
70 70
71 SDL_RenderDriver NDS_RenderDriver = { 71 SDL_RenderDriver NDS_RenderDriver = {
72 NDS_CreateRenderer, 72 NDS_CreateRenderer,
73 {"nds", /* char* name */ 73 {"nds", /* char* name */
74 (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_PRESENTVSYNC), /* u32 flags */ 74 (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), /* u32 flags */
75 3, /* u32 num_texture_formats */ 75 3, /* u32 num_texture_formats */
76 { 76 {
77 SDL_PIXELFORMAT_INDEX8, 77 SDL_PIXELFORMAT_INDEX8,
78 SDL_PIXELFORMAT_ABGR1555, 78 SDL_PIXELFORMAT_ABGR1555,
79 SDL_PIXELFORMAT_BGR555, 79 SDL_PIXELFORMAT_BGR555,