Mercurial > sdl-ios-xcode
comparison src/render/direct3d/SDL_d3drender.c @ 5169:4d39eeaad00b
Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Feb 2011 15:49:37 -0800 |
parents | 657543cc92f9 |
children | ebfedf3787b1 |
comparison
equal
deleted
inserted
replaced
5168:2b1989f59674 | 5169:4d39eeaad00b |
---|---|
325 renderer->RenderReadPixels = D3D_RenderReadPixels; | 325 renderer->RenderReadPixels = D3D_RenderReadPixels; |
326 renderer->RenderPresent = D3D_RenderPresent; | 326 renderer->RenderPresent = D3D_RenderPresent; |
327 renderer->DestroyTexture = D3D_DestroyTexture; | 327 renderer->DestroyTexture = D3D_DestroyTexture; |
328 renderer->DestroyRenderer = D3D_DestroyRenderer; | 328 renderer->DestroyRenderer = D3D_DestroyRenderer; |
329 renderer->info = D3D_RenderDriver.info; | 329 renderer->info = D3D_RenderDriver.info; |
330 renderer->window = window; | |
331 renderer->driverdata = data; | 330 renderer->driverdata = data; |
332 | 331 |
333 renderer->info.flags = SDL_RENDERER_ACCELERATED; | 332 renderer->info.flags = SDL_RENDERER_ACCELERATED; |
334 | 333 |
335 SDL_VERSION(&windowinfo.version); | 334 SDL_VERSION(&windowinfo.version); |