comparison src/video/SDL_sysvideo.h @ 1924:69217fdd2c0a

If the OpenGL renderer is selected for a non-OpenGL window, recreate the window with OpenGL enabled. Added OpenGL renderer error checking. Use fast-path texture formats in the OpenGL renderer.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Jul 2006 21:02:57 +0000
parents d4572b97b08f
children 861bc36f0ab3
comparison
equal deleted inserted replaced
1923:d4572b97b08f 1924:69217fdd2c0a
395 extern SDL_bool SDL_AddDisplayMode(int displayIndex, 395 extern SDL_bool SDL_AddDisplayMode(int displayIndex,
396 const SDL_DisplayMode * mode); 396 const SDL_DisplayMode * mode);
397 extern void SDL_AddRenderDriver(int displayIndex, 397 extern void SDL_AddRenderDriver(int displayIndex,
398 const SDL_RenderDriver * driver); 398 const SDL_RenderDriver * driver);
399 399
400 extern int SDL_RecreateWindow(SDL_Window * window);
400 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID); 401 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
401 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window); 402 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window);
402 403
403 extern void SDL_OnWindowShown(SDL_Window * window); 404 extern void SDL_OnWindowShown(SDL_Window * window);
404 extern void SDL_OnWindowHidden(SDL_Window * window); 405 extern void SDL_OnWindowHidden(SDL_Window * window);