Alex Szpakowski
3ae336dd43
Added love.window.showMessageBox.
...
It has two variants: showMessageBox(type, title, message [, attachtowindow=true]), and showMessageBox(type, title, message, buttons [, attachtowindow=true]). The former shows a simple message box with a single OK button, and the latter displays several buttons. The buttons argument is an array of button names.
The second variant returns the index of the pressed button, or 0 if the message box was closed some other way. showMessageBox will block until the message box is closed (and it can't be called on a separate thread.)
2014-07-21 21:28:21 -03:00
Alex Szpakowski
d52bab4221
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
2014-07-21 15:12:01 -03:00
Alex Szpakowski
014b9a46e5
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
2014-07-21 14:52:01 -03:00
Alex Szpakowski
e87fbdcaaf
Fixed the default line join mode to be 'miter' instead of an undefined value.
2014-07-15 15:49:01 -03:00
Bart van Strien
59ab602111
Normalize slashes in paths unless they are direct user input (XDG_DATA_HOME/APPDATA, specifically)
2014-07-15 13:16:37 +02:00
Alex Szpakowski
a658c7df76
Fixed the error screen when highdpi mode is enabled on a retina monitor in OS X (resolves issue #908 )
2014-07-12 21:12:21 -03:00
Alex Szpakowski
0841ff209b
license.txt is now distributed with the OS X build of LÖVE in love.app/Contents/Resources/.
2014-07-10 20:54:35 -03:00
Alex Szpakowski
a4a075dd2e
Fixed crashes and instability when love.graphics.setMode is called when a vertex buffer is mapped by love.
2014-07-10 16:16:00 -03:00
Alex Szpakowski
9ab9a393d5
Added Contact:getFixtures and Body:getContactList (see issue #905 ).
...
The list of Contacts associated with bodies changes during World:update (potentially multiple times), so you might miss collisions if you don't use the World callbacks at all.
2014-07-07 15:24:24 -03:00
Alex Szpakowski
dac9f4eaaa
Added love.window.minimize (resolves issue #904 ).
2014-07-05 17:55:06 -03:00
Alex Szpakowski
d5ae557149
Updated changelog
2014-07-05 16:40:15 -03:00
Alex Szpakowski
d11ccd0e69
Added love.graphics.getCanvasFormats and love.graphics.getCompressedImageFormats, and removed love.graphics.hasCanvasFormat.
...
The two new functions return tables containing the names of all relevant formats as keys, and boolean values indicating whether the formats are supported.
2014-07-05 16:22:52 -03:00
Alex Szpakowski
4c67a94ba3
Hopefully fixed issue #898 , and cleaned up code for love.graphics.getRendererInfo.
2014-06-19 03:02:37 -03:00
Alex Szpakowski
738cc01468
Increased version to 0.9.2.
2014-06-18 19:05:43 -03:00
Alex Szpakowski
2ae4e9cd5a
Fixed a potential memory leak in the love.physics World callbacks.
2014-06-18 16:24:38 -03:00
Bart van Strien
fb3aa060b2
Fix Texture leak in Meshes
2014-06-18 14:34:05 +02:00
Bart van Strien
c5d59107ad
Modify desktop file to play nicer with file associations in newer versions of nautilus (gnome file browser)
2014-06-18 10:59:32 +02:00
Alex Szpakowski
f0fa63ba47
Backported commits 145524a and 7785b4b from minor into default (Added SpriteBatch:flush, deprecated SpriteBatch:bind/unbind, SpriteBatch:flush is called implicitly when the spritebatch is drawn.)
2014-06-17 21:52:56 -03:00
Alex Szpakowski
b9cd93e071
Re-added ParticleSystem:setQuads(q1, q2, ...). Active particles use the quads based on the particle's lifetime in a similar style to ParticleSystem:setColors and ParticleSystem:setSizes.
2014-06-15 18:20:05 -03:00
Alex Szpakowski
d2450d5f2e
Updated changelog for changes which aren't in the minor branch
2014-06-14 16:58:24 -03:00
Alex Szpakowski
aa882cbcbc
Added love.window.getDisplayName, to get the name of a connected display.
2014-06-14 16:20:30 -03:00
Alex Szpakowski
23d3cbc2e2
Renamed all cases of FSAA to the more accurately-named MSAA. The FSAA names (canvas:getFSAA, t.window.fsaa, etc.) still exist for now, for backwards-compatibility.
2014-06-13 23:28:00 -03:00
Alex Szpakowski
431b6a56ce
Added Body:getWorld (resolves issue #895 )
2014-06-09 19:00:05 -03:00
Alex Szpakowski
0c4116468c
And some more.
2014-06-09 18:37:47 -03:00
Alex Szpakowski
787ba6b650
Removed some stowaway test code...
2014-06-09 18:32:02 -03:00
Alex Szpakowski
5dd23dffd1
Added Joint:setUserData and Joint:getUserData (resolves issue #894.)
2014-06-05 20:56:43 -03:00
Alex Szpakowski
3792dee4b4
Backout changeset 57172a7f03452a6b07f346e850f3e1020e230f46
2014-06-05 14:59:29 -03:00
Alex Szpakowski
e9e303c1e8
Changed embedded Lua scripts to be included in the love source via C++11's raw string literals instead of a generated header file. Removed auto.lua.
...
As a result, love can be compiled immediately after editing an embedded Lua script.
Visual Studio 2013 or newer is required for C++11 raw string literals in Windows.
2014-06-05 13:42:03 -03:00
Alex Szpakowski
ddb9997ead
Replaced Joystick:saveGamepadMapping with love.joystick.saveGamepadMappings, which saves all gamepad mappings from both recently-used joysticks and recently-modified mappings. saveGamepadMappings returns a string of newline-separated mappings and takes an optional filename argument which writes it to a file.
2014-06-05 00:25:34 -03:00
Alex Szpakowski
10e0d4b900
Moved the love.joystick Lua wrapper code from modules/joystick/sdl/ to modules/joystick/.
2014-06-04 16:23:39 -03:00
Alex Szpakowski
4cd4d35739
Fixed some logic
2014-06-04 16:06:36 -03:00
Alex Szpakowski
42a565a0eb
Fixed love.joystick.loadGamepadMappings to properly enable currently connected Joysticks as Gamepads when necessary.
2014-06-04 16:03:02 -03:00
Alex Szpakowski
79b453653a
Added love.joystick.loadGamepadMappings (resolves issue #842 ), and Joystick:saveGamepadMapping.
...
The latter returns a mapping string, and the former loads a newline-separated list of mapping strings.
2014-06-04 15:50:06 -03:00
Alex Szpakowski
dfa319e01a
Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments.
2014-06-03 19:27:00 -03:00
Alex Szpakowski
724bdbd296
love.graphics.newImage, love.image.newImageData, etc. no longer leave Lua-owned FileData objects floating around waiting to be GC'd when called with filename arguments, resulting in less memory use on startup (resolves issue #890.)
...
Moved love.filesystem Lua wrapper code from src/modules/filesystem/physfs/ to src/modules/filesystem/.
2014-06-02 00:22:41 -03:00
Alex Szpakowski
4d0bbb97d8
Fixed Lua pattern matching for detecting the 'position' and 'effect' shader functions (thanks lpghatguy!)
2014-05-31 00:42:18 -03:00
Alex Szpakowski
6971ece4cb
Fixed Mesh:setDrawRange when the Mesh has a vertex map and the first argument to setDrawRange is non-zero. Removed mesh-specific instancing code.
2014-05-30 17:52:58 -03:00
Alex Szpakowski
f973c696f9
Fixed Image:refresh regenerating mipmaps multiple times if mipmap filtering is enabled on an uncompressed image
2014-05-28 01:36:09 -03:00
Alex Szpakowski
a028f94ff2
Fixed love.graphics.newMesh(vertexcount, ...) trying to use glDrawArraysInstanced sometimes, fixed Mesh:getVertexMap.
2014-05-23 13:46:13 -03:00
Alex Szpakowski
fd5b5aad65
Minor code cleanup
2014-05-21 21:14:08 -03:00
Alex Szpakowski
2b12c9cb1e
Updated the readme
2014-05-20 22:48:54 -03:00
Alex Szpakowski
cb01e3f4d1
Fixed segfault when garbage collecting Shader objects
2014-05-14 20:00:59 -03:00
Alex Szpakowski
976c26aa21
Removed an unnecessary extension dependency for support of the rg11b10f canvas format
2014-05-14 16:45:16 -03:00
Alex Szpakowski
1d22ea821c
Merged bartbes/love-experiments/Canvas-formats into default
2014-05-14 12:42:02 -03:00
Alex Szpakowski
5658a2440b
Added some comments describing the formats in the Canvas::Format enum.
...
--HG--
branch : Canvas-formats
2014-05-14 01:38:33 -03:00
Alex Szpakowski
4aeba24e94
Fixed the rg11b10f canvas format, removed rgb9e5 due to lack of real support, improved love.graphics.hasCanvasFormat to do extra checks
...
--HG--
branch : Canvas-formats
2014-05-13 21:59:24 -03:00
Alex Szpakowski
febbecddf7
Fixed the texture type of the rgb9e5 canvas format
...
--HG--
branch : Canvas-formats
2014-05-13 21:22:29 -03:00
Alex Szpakowski
408a593113
Added support for several specific Canvas formats. Also added love.graphics.hasCanvasFormat.
...
The list includes RGBA with 4-bit components, RGBA with 10-bit R, G, and B components and a 2-bit alpha component, RGB with 9-bit RGB components and a 5-bit exponent component (for HDR rendering), and several more.
--HG--
branch : Canvas-formats
2014-05-13 20:54:58 -03:00
Alex Szpakowski
036f6eb8cb
Added an optional duration argument to Joystick:setVibration.
2014-05-10 16:52:40 -03:00
Alex Szpakowski
6a491ed0f0
Don't do unnecessary vertex buffer orphaning when calling SpriteBatch:unbind() on a SpriteBatch with the static usage hint
2014-05-06 21:24:26 -03:00