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
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
Alex Szpakowski
44d10be928
Added a love.keyboard.setTextInput variant (setTextInput(enable, x, y, width, height)) to specify a rectangle where text is expected to be displayed on the screen. This is used as a hint so on-screen keyboards won't cover the text area.
...
Added love.keyboard.hasScreenKeyboard.
--HG--
branch : minor
2015-02-17 00:35:01 -04:00
Alex Szpakowski
2f1c89006e
Slightly more robust hack to work around SDL's touch coordinate issues in Linux.
...
--HG--
branch : minor
2015-02-16 17:35:45 -04:00
Alex Szpakowski
71c9943bd0
Fixed the keypressed and keyreleased handler functions.
...
--HG--
branch : minor
2015-02-16 17:16:47 -04:00
Alex Szpakowski
5c1e6014cc
Changed the love.keypressed and love.keyreleased event callbacks to be love.keypressed(key, scancode, isrepeat) and love.keyreleased(key, scancode). Added love.keyboard.isScancodeDown. Resolves issue #993 .
...
--HG--
branch : minor
2015-02-16 17:10:03 -04:00
Alex Szpakowski
cce995146f
Merged default into minor
...
--HG--
branch : minor
2015-02-16 16:44:14 -04:00
Alex Szpakowski
976ce8ae00
Fixed cmakelists.txt.
...
--HG--
branch : minor
2015-02-16 16:31:10 -04:00
Alex Szpakowski
7f9abc1e77
Added love.touch module and touch screen events. Resolves issue #825 .
...
Note: this implementation is slightly different from the implementation in the love 0.9.x Android and iOS ports!
Added love.touchpressed(id, x, y), love.touchmoved(id, x, y, dx, dy), and love.touchreleased(id, x, y, dx, dy).
id is a unique identifier for the touch press that persists until love.touchreleased. After that it is no longer unique.
x and y are the coordinates of the touch event in pixels within the window.
dx and dy are the amount in pixels that the touch has moved since the last event.
Added love.touch.getTouchCount and love.touch.getTouch(index).
love.touch.getTouch takes an index (not the same as an id. indices are not stable and don't correspond to a unique touch press.)
It returns the id of the touch and its current x and y coordinates in pixels.
--HG--
branch : minor
2015-02-16 16:29:45 -04:00
Alex Szpakowski
24cb934fa6
Slightly reduced the memory usage of Fonts / Rasterizers created using the default font.
...
--HG--
branch : minor
2015-02-16 04:19:07 -04:00
Alex Szpakowski
fb79788d74
Moved more Font code out of the FreeType implementation files.
...
--HG--
branch : minor
2015-02-16 03:12:47 -04:00
Alex Szpakowski
e8286de1f3
Pulled some Font module code out of the freetype implementation files, since it's not freetype-specific.
...
--HG--
branch : minor
2015-02-16 01:47:20 -04:00
Alex Szpakowski
c2628fe4f9
Added a workaround for a bug in PhysFS 2.1-alpha involving trailing slashes and PHYSFS_enumerateFiles.
...
--HG--
branch : minor
2015-02-16 00:27:17 -04:00
Alex Szpakowski
8edea22179
Added love.mouse.hasCursor. Returns true if mouse cursors are available.
...
--HG--
branch : minor
2015-02-16 00:21:39 -04:00
Alex Szpakowski
1f726b2fa1
Code style cleanup.
...
--HG--
branch : minor
2015-02-16 00:17:48 -04:00
Alex Szpakowski
813457aa71
Pre-emptive fix for an attenuation distance issue in iOS' OpenAL implementation.
...
--HG--
branch : minor
2015-02-16 00:10:11 -04:00
Alex Szpakowski
606f077e5d
Moved Mac-specific code from platform/macosx/ to src/common/
...
--HG--
branch : minor
2015-02-15 23:44:35 -04:00
Alex Szpakowski
976deb0b74
Added a Sound Decoder using Apple's CoreAudio framework.
...
--HG--
branch : minor
2015-02-15 21:57:43 -04:00
Alex Szpakowski
c106d9ff53
love.event can now handle any number of event arguments.
...
--HG--
branch : minor
2015-02-15 21:31:22 -04:00
Alex Szpakowski
672899f5c7
Use a message box for version compatibility warnings, rather than displaying a timed message before the game loads.
2015-02-15 17:38:43 -04:00
Alex Szpakowski
7d2f1d74a4
Renamed the Key and Scancode constants representing the spacebar from " " to "space" (see issue #976.)
...
--HG--
branch : minor
2015-02-15 16:11:50 -04:00