comparison src/render/opengl/SDL_renderer_gl.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 d976b67150c5
comparison
equal deleted inserted replaced
5168:2b1989f59674 5169:4d39eeaad00b
207 renderer->RenderReadPixels = GL_RenderReadPixels; 207 renderer->RenderReadPixels = GL_RenderReadPixels;
208 renderer->RenderPresent = GL_RenderPresent; 208 renderer->RenderPresent = GL_RenderPresent;
209 renderer->DestroyTexture = GL_DestroyTexture; 209 renderer->DestroyTexture = GL_DestroyTexture;
210 renderer->DestroyRenderer = GL_DestroyRenderer; 210 renderer->DestroyRenderer = GL_DestroyRenderer;
211 renderer->info = GL_RenderDriver.info; 211 renderer->info = GL_RenderDriver.info;
212 renderer->window = window;
213 renderer->driverdata = data; 212 renderer->driverdata = data;
214 213
215 renderer->info.flags = SDL_RENDERER_ACCELERATED; 214 renderer->info.flags = SDL_RENDERER_ACCELERATED;
216 215
217 if (GL_LoadFunctions(data) < 0) { 216 if (GL_LoadFunctions(data) < 0) {