Commit Graph

13 Commits

Author SHA1 Message Date
Alex Szpakowski
bc4b6f061b Minor Objective-C code tweaks. 2014-11-27 20:25:54 -04:00
Alex Szpakowski
feb2ab1e85 Minor objective-c code style improvements 2014-11-20 18:45:04 -04:00
Alex Szpakowski
ba565622aa Enabling highdpi mode on an iPhone 6 Plus should now create a 1080x1920 OpenGL view, rather than 1242x2208 (414x736@3x.) 2014-09-14 17:04:54 -03:00
Alex Szpakowski
deceab256e Added iOS-specific functions to get the window view's current OpenGL Renderbuffer and Framebuffer objects, so they can be more easily rebound when necessary. 2014-08-08 15:14:09 -03:00
Alex Szpakowski
2dac6bf57e Fixed opengl context share groups on iOS. 2014-08-07 00:44:16 -03:00
Alex Szpakowski
02b06c6692 Merged default into iOS-improvements 2014-08-06 13:50:50 -03:00
Sam Lantinga
6299daecba The OpenGL context returned by the UIKit backend is now an actual OpenGL context instead of the OpenGL view we created.
This allows you to use the returned context in functions like CVOpenGLESTextureCacheCreate()
2014-08-06 00:28:02 -07:00
Alex Szpakowski
f5543f93b3 Updated the iOS backend code to use Objective-C's automatic reference counting (ARC). 2014-08-06 03:24:16 -03:00
Alex Szpakowski
caad673f06 Added missing autorelease pool blocks in UIKit backend code. Fixes memory leak issues, especially in SDL_video. 2014-07-29 00:36:12 -03:00
Alex Szpakowski
029e0193c5 Fixed SDL_SetWindowFullscreen on iOS for the last time, hopefully.
Fixed iOS version checking code.
2014-07-23 21:55:42 -03:00
Alex Szpakowski
078ca9f078 Cleaned up iOS OpenGL ES context creation code and added sRGB context support on iOS 7+ 2014-07-22 20:06:13 -03:00
Alex Szpakowski
3672409c51 Changed the way retina resolutions are handled in iOS.
Previously, SDL would always expose display modes and window dimensions in terms of pixels, and would add an extra 'fake' display mode on retina screens which would contain the non-retina resolution. Calling SDL_CreateWindow with the dimensions of that fake display mode would not work.

Now, SDL only exposes display modes and window dimensions in terms of points rather than pixels. If the SDL_WINDOW_ALLOW_HIGHDPI flag is passed into SDL_CreateWindow, then any OpenGL contexts created from that window will be sized in pixels rather than points (retrievable with SDL_GL_GetDrawableSize.) Window dimensions and mouse coordinates are still in terms of points rather than pixels even with that flag.

This matches the behavior of SDL in OS X more closely, and lets users choose whether to make use of retina displays and lets them handle it properly.
2014-07-14 22:35:48 -03:00
David Ludwig
3dcb451f85 Added a README file regarding WinRT support
To note, this file is currently formatted with CRLF line endings, rather than
LF, to allow the file to be viewed with Notepad.
2014-04-09 21:29:19 -04:00