Alex Szpakowski
b76b7bac8b
Added support for a few more mouse buttons (via "x3", "x4", and "x5" button constants.)
2015-03-07 23:28:58 -04:00
Alex Szpakowski
4ef0d257e9
Added an optional font hinting argument to love.graphics.newFont / love.font.newRasterizer when loading TrueType fonts. Resolves issue #963 .
...
Accepted values are "normal", "light", "mono", and "none".
2015-03-07 22:05:37 -04:00
Alex Szpakowski
afcad4defc
Added new flag t.accelerometerjoystick to love.conf (true by default.) When set to false on mobile, the device's accelerometer will not show up as a joystick even if the joystick module is loaded.
...
This can reduce CPU usage if you don't use the accelerometer but you don't want to disable the joystick module entirely.
2015-03-07 15:36:53 -04:00
Alex Szpakowski
7e99ea6839
Added a boolean argument to love.mousemoved indicating whether the event came from a touch press (love.mousepressed and love.mousereleased already have it.)
2015-03-07 00:41:18 -04:00
Alex Szpakowski
4dc73959a6
Hopefully fixed a major bug related to using Shader:send with textures.
2015-03-06 02:08:33 -04:00
Alex Szpakowski
b39036eaa5
Added Image:getFlags.
2015-03-04 23:07:05 -04:00
Alex Szpakowski
c561308c96
Font:getWrap's second return value is now a table containing the text split into lines. Resolves issue #1002 .
2015-03-04 20:35:41 -04:00
Alex Szpakowski
4fa5ab4a07
Fixed the winding order of triangles in SpriteBatches and ParticleSystems.
2015-03-04 16:03:01 -04:00
Alex Szpakowski
4263de89ab
The default offset for particles in a ParticleSystem is now updated when ParticleSystem:setQuads or ParticleSystem:setTexture is used (resolves issue #998.)
2015-03-04 03:57:41 -04:00
Alex Szpakowski
e2652fddc1
Updated the readme.
2015-03-04 03:21:26 -04:00
Alex Szpakowski
06fa7bd7a4
Don't enable SDL_GL_FRAMEBUFFER_SRGB_CAPABLE in Linux when creating the window, to work around a potential bug. sRGB windows are still possible even without that.
2015-03-03 17:48:19 -04:00
Alex Szpakowski
8277eb9abd
Renamed the internal OpenGL buffer class from VertexBuffer to GLBuffer.
2015-03-03 02:21:28 -04:00
Alex Szpakowski
d7667ea8fc
Updated changelog.
2015-03-03 00:49:46 -04:00
Alex Szpakowski
275a9a300f
Multi-canvas rendering (love.graphics.setCanvas with multiple canvases) now allows canvases with different formats, if the system supports it. Added 'multicanvasformats' to the table returned by love.graphics.getSupported.
...
--HG--
branch : minor
2015-03-02 23:43:09 -04:00
Alex Szpakowski
3ced9ca38f
Added one- and two-channel Canvas formats: r8, rg8, r16f, rg16f, r32f, and rg32f.
...
--HG--
branch : minor
2015-03-02 18:06:14 -04:00
Alex Szpakowski
3fea174008
Cleaned up some shader code.
...
--HG--
branch : minor
2015-03-02 15:18:12 -04:00
Alex Szpakowski
3536f2665f
love.graphics.clear can accept an array of color components.
...
--HG--
branch : minor
2015-03-02 02:32:53 -04:00
Alex Szpakowski
9869999fda
Added a missing key constant.
...
--HG--
branch : minor
2015-03-02 00:52:07 -04:00
Alex Szpakowski
bf5f0b4175
bmp isn't a supported format for ImageData:encode.
...
--HG--
branch : minor
2015-03-01 23:38:34 -04:00
Alex Szpakowski
2f419c1c83
Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
...
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
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
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
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