Commit Graph

2316 Commits

Author SHA1 Message Date
Alex Szpakowski 3830a0969c Moved the Texture and Quad Lua wrapper files out of the opengl graphics implementation folder.
--HG--
branch : minor
2015-03-01 03:51:44 -04:00
Alex Szpakowski c572b1af19 Moved the Lua wrapper code for love.event out of the sdl implementation folder.
--HG--
branch : minor
2015-03-01 02:55:50 -04:00
Alex Szpakowski a8276105c7 Renamed love.touch.getTouchIDs to love.touch.getIDs.
--HG--
branch : minor
2015-03-01 02:46:00 -04:00
Alex Szpakowski 395bb0bea8 Fixed a crash when Canvas:newImageData should error.
--HG--
branch : minor
2015-02-28 16:22:02 -04:00
Alex Szpakowski faa4a33fe9 Use triangle strips rather than triangle fans when possible.
--HG--
branch : minor
2015-02-28 02:32:34 -04:00
Alex Szpakowski 9313484fcc Cleaned up graphics.lua a bit
--HG--
branch : minor
2015-02-28 00:11:27 -04:00
Alex Szpakowski 9a2bf4b210 Fixed the check for OpenGL extensions that support glInvalidateFramebuffer to check for GL_ARB_invalidate_subdata instead of GL_ARB_ES3_compatibility.
--HG--
branch : minor
2015-02-27 23:34:08 -04:00
Alex Szpakowski b9c90e8a6f Fixed the background color for the error screen, and updated LodePNG to the latest version.
--HG--
branch : minor
2015-02-27 21:20:31 -04:00
Alex Szpakowski b52b9c7a2b Added love.graphics.discard, which discards the contents of the screen (or currently active Canvas.)
Using it just after activating a Canvas can improve performance on many mobile devices, if the conditions for using it are right.

--HG--
branch : minor
2015-02-27 04:51:38 -04:00
Alex Szpakowski 1326ae9a5d Added love.graphics.clearStencil, which only clears the stencil buffer.
--HG--
branch : minor
2015-02-27 03:58:40 -04:00
Alex Szpakowski 3efcf3901b Removed Canvas:clear. love.graphics.clear now accepts r,g,b,a values (and defaults to 0,0,0,0 with no arguments given.) love.graphics.clear clears the content of the currently active Canvas(es.)
--HG--
branch : minor
2015-02-27 03:47:25 -04:00
Alex Szpakowski f83c2db471 Cleaned up the Canvas code.
--HG--
branch : minor
2015-02-26 17:06:09 -04:00
Alex Szpakowski a66a7b7ce9 Prevent invalid stencil buffer contents from being used when switching to a Canvas on mobile.
--HG--
branch : minor
2015-02-26 01:00:38 -04:00
Alex Szpakowski 95f87ed886 Added love.lowmemory event callback function, called when the app is close to running out of memory on iOS and Android.
--HG--
branch : minor
2015-02-26 00:45:48 -04:00
Alex Szpakowski e8ce59038f Renamed Canvas:getImageData to Canvas:newImageData (see issue #1001.)
--HG--
branch : minor
2015-02-26 00:13:46 -04:00
Alex Szpakowski 8239d472d4 Removed Canvas:getPixel and added optional x/y/width/height arguments to Canvas:getImageData to specify a sub-rectangle (see issue #1001.)
--HG--
branch : minor
2015-02-25 23:27:35 -04:00
Alex Szpakowski 1b29679912 Merged default into minor
--HG--
branch : minor
2015-02-24 21:42:55 -04:00
Alex Szpakowski c4dd3df799 Added a placeholder default launch screen nib for iOS so the app always uses the device's native resolution (in iOS 8+, at least.)
--HG--
branch : minor
2015-02-24 03:54:29 -04:00
Alex Szpakowski 2cc53bb85c Added Canvas MSAA support in OpenGL ES 2 on iOS and when ANGLE is used on Windows.
--HG--
branch : minor
2015-02-24 03:07:46 -04:00
Alex Szpakowski 517ee44e84 Fixed Canvases on iOS, added support for Canvas MSAA on OpenGL ES 3.
--HG--
branch : minor
2015-02-24 02:36:32 -04:00
Alex Szpakowski 52c4f2c119 Improved the performance of love.window.getPixelScale / toPixels / fromPixels by caching some values. Made some coordinate space-sensitive code use the proper conversions to get to the correct coordinate space.
--HG--
branch : minor
2015-02-23 17:55:30 -04:00
David Huffman 19094b5a3f Maintain consistency with #endif comments 2015-02-23 08:59:28 +00:00
Alex Szpakowski 182792de85 Enabled CoreAudio sound decoder support on iOS
--HG--
branch : minor
2015-02-22 22:17:17 -04:00
Alex Szpakowski aac4b3487a Replace deprecated PHYSFS_addToSearchPath calls with PHYSFS_mount.
--HG--
branch : minor
2015-02-22 17:48:32 -04:00
Alex Szpakowski 1aaa8737ab Merged default into minor
--HG--
branch : minor
2015-02-22 02:38:09 -04:00
Alex Szpakowski 59e1cf23e8 Probably fixed the Windows build 2015-02-22 02:30:26 -04:00
Alex Szpakowski 5822128c14 Copy/paste error...
--HG--
branch : minor
2015-02-21 22:03:34 -04:00
Alex Szpakowski 5932c39c86 Removed some redundant code.
--HG--
branch : minor
2015-02-21 21:54:13 -04:00
Alex Szpakowski 33d20620b5 The Proxy struct now stores an actual love::Object pointer (rather than void*), which makes code using Proxies a bit cleaner.
--HG--
branch : minor
2015-02-21 20:52:29 -04:00
Alex Szpakowski e26e170f78 Enabled high-dpi code on Linux (even though SDL doesn't support it yet on Linux, as of 2.0.4.) SDL 2.0.1 or newer is now required on Linux.
I'd rather have high-dpi work on Linux without needing to rebuild love when it's eventually implemented in SDL, rather than preserve backwards-compatibility with SDL 2.0.0 on Linux (which isn't important for love 0.10.0.)

--HG--
branch : minor
2015-02-21 19:06:41 -04:00
Alex Szpakowski bf8f6f8b02 Changed the default fullscreen type from 'exclusive' to 'desktop'.
--HG--
branch : minor
2015-02-21 17:27:54 -04:00
Alex Szpakowski 33f57ce8fd OpenGL ES 3 contexts can only be reliably created on iOS (for now.)
--HG--
branch : minor
2015-02-21 17:16:40 -04:00
Alex Szpakowski 622b737019 Merged default into minor
--HG--
branch : minor
2015-02-21 03:53:33 -04:00
Alex Szpakowski 971380003b Reorganized some Image code.
--HG--
branch : minor
2015-02-21 03:47:19 -04:00
Alex Szpakowski 813061c0e0 Fix the stencil buffer in Canvases when the graphics driver uses a MSAA value for the Canvas' buffers that's greater than the number of requested MSAA samples.
Fixes https://love2d.org/forums/viewtopic.php?f=4&t=79701
2015-02-21 01:56:17 -04:00
Alex Szpakowski 3faa3c7645 Removed some unnecessary xcode project config files
--HG--
branch : minor
2015-02-20 20:12:44 -04:00
Alex Szpakowski ebc68023a7 Fix many warnings about implicit integer conversions when compiling for 64 bits.
--HG--
branch : minor
2015-02-20 01:20:08 -04:00
Alex Szpakowski 85de3c41fb Initial iOS implementation.
--HG--
branch : minor
2015-02-20 00:21:21 -04:00
Alex Szpakowski 24c7539182 Updated some Xcode project settings
--HG--
branch : minor
2015-02-18 23:04:01 -04:00
Alex Szpakowski 583b88bdd8 DevIL isn't used anymore.
--HG--
branch : minor
2015-02-18 22:51:39 -04:00
Alex Szpakowski df0fab1b67 Moved the xcode project files and related data from platform/macosx to platform/xcode.
--HG--
branch : minor
2015-02-18 22:47:04 -04:00
Alex Szpakowski e137c9327b Fixed a GL error on startup when OpenGL ES is used.
--HG--
branch : minor
2015-02-18 19:01:19 -04:00
Alex Szpakowski 28f4f42454 Cleaned up the code for determining whether an image can be decoded using stb_image.
--HG--
branch : minor
2015-02-18 00:43:09 -04:00
Alex Szpakowski d0300a4fa7 Made the TurboJPEG code for decoding and encoding images disable-able.
--HG--
branch : minor
2015-02-18 00:18:47 -04:00
Alex Szpakowski 5652475dd2 Use lightuserdata instead of Lua numbers (doubles) to represent touch IDs.
--HG--
branch : minor
2015-02-17 22:46:20 -04:00
Alex Szpakowski 77d90e2260 Removed love.touch.getTouchCount and love.touch.getTouch. Added love.touch.getTouchIDs and love.touch.getPosition.
love.touch.getTouchIDs returns an array of all currently active touch IDs. love.touch.getPosition takes an active touch ID and returns the current position of that touch.

--HG--
branch : minor
2015-02-17 18:33:59 -04:00
Alex Szpakowski 482b61187f Added a new backend for loading and saving images using Apple's ImageIO framework. It's not enabled on any platform yet.
--HG--
branch : minor
2015-02-17 17:56:40 -04:00
Alex Szpakowski c02c8b154d Added a boolean argument to love.mousepressed and love.mousereleased indicating whether the button event originated from a touchscreen press
--HG--
branch : minor
2015-02-17 02:33:42 -04:00
Alex Szpakowski ac2b03e8a4 Added love.graphics.isActive. love.graphics function calls (and method calls on objects created via love.graphics) are only guaranteed to work when isActive is true, otherwise bad things might happen (the program crashing, for example.)
It's usually only false when the app is inactive on iOS, and when the window hasn't been created yet.

--HG--
branch : minor
2015-02-17 02:24:09 -04:00
Alex Szpakowski cafbf1ffbe Trigger love.quit when the SDL_APP_TERMINATING event occurs.
--HG--
branch : minor
2015-02-17 00:40:50 -04:00