Alex Szpakowski
39db975cb5
Added release date for 0.9.2
0.9.2
2015-02-14 16:11:45 -04:00
Bart van Strien
902a7cb68b
Update debian package files to the 0.9.2~rc1 version
2015-02-14 20:19:47 +01:00
Alex Szpakowski
5e088aa183
Updated changelog
2015-02-14 00:43:28 -04:00
Bart van Strien
600a369d77
Allow calling newRasterizer without arguments from newFont again
...
Fixes regression introduced by commit 9b0752574f26, the default value for the
1-argument newFont could not be called.
Thanks to josefnpat for reporting.
2015-02-13 15:18:52 +01:00
Alex Szpakowski
d82d2c93b6
If love is run from an existing console window in Windows, it will use that for stdout (when console mode is enabled via love.conf or --console) rather than creating a new console.
2015-02-11 15:40:22 -04:00
Alex Szpakowski
320ec8b472
Added love.filesystem.getRealDirectory(filepath).
...
It returns the platform-specific full path of the directory containing the filepath (rather than the file.) For example, if 'saves/save1.txt' exists in the save directory, love.filesystem.getRealDirectory("saves/save1.txt") will equal love.filesystem.getSaveDirectory().
2015-02-09 17:43:59 -04:00
Alex Szpakowski
70ea0e1f3f
Updated changelog.
2015-02-03 03:18:22 -04:00
Alex Szpakowski
685c77acd9
Fixed the Windows CMake build.
2015-02-02 17:28:11 -04:00
Alex Szpakowski
a84367ef38
Prefer the higher performance GPU on Windows systems that use nvidia optimus (resolves issue #984.)
2015-02-02 16:29:58 -04:00
Alex Szpakowski
2a09774a54
Fixed love.graphics.newFont.
2015-02-02 15:26:13 -04:00
Alex Szpakowski
a314b18515
Added love.keyboard.getKeyFromScancode and love.keyboard.getScancodeFromKey. Resolves issue #982 .
...
Scancodes represent a physical key independent of the keyboard's current layout. For example, pressing the key located where 'q' is on a U.S. keyboard will produce the key 'q' and the scancode 'q' when using a U.S. keyboard layout, but when using a French keyboard layout it will produce the key 'a' and the scancode 'q'.
Scancodes are useful for creating default controls that have the same physical locations on on all keyboards.
2015-02-01 03:13:14 -04:00
Alex Szpakowski
695ab41915
Added love.audio.set/getDopplerScale.
2015-02-01 00:36:34 -04:00
Alex Szpakowski
ea2e45f4e2
Renamed love.mouse.setRelative to love.mouse.setRelativeMode, removed some unused OpenGL code.
2015-01-31 23:17:37 -04:00
Alex Szpakowski
8989e39b1e
A better fix for love.mouse.setPosition not updating the return values of love.window.getPosition until the next love.event.pump call on Windows and Linux.
2015-01-31 02:36:31 -04:00
Alex Szpakowski
f6bd177f84
A debug print statement snuck in there...
2015-01-31 01:35:17 -04:00
Alex Szpakowski
9cf1868b81
Fixed the point style and color mask getting reset in love.window.setMode (thanks Shell32)
2015-01-31 01:22:54 -04:00
Alex Szpakowski
665cdc4ae7
Moved the default Font logic from the graphics.lua script to the Graphics and Font module C++ code. Moved love.graphics.setNewFont from the graphics.lua script to the Graphics module Lua wrapper code. Moved the Vera.ttf data from the graphics.lua script to its own file inside the Font module.
2015-01-31 01:10:38 -04:00
Alex Szpakowski
72f98b9c8f
love's overloaded love.graphics.print and love.graphics.printf functions now use proper tail calls, which fixes the filename and backtrace given if those functions cause an error.
2015-01-30 22:14:46 -04:00
Alex Szpakowski
423e35fd76
TrueType rasterizers now error properly when given an invalid size argument.
2015-01-29 20:38:12 -04:00
Bart van Strien
33d2331255
Adjust version header to resolve linker conflict with two definitions of love::VERSION in android builds
...
NOTE: Sadly, on some platforms, like linux, the linker is "smart" enough to have the previous code be completely ineffective, the checking will only work with versions of love >= 0.9.2
2015-01-24 23:09:49 +01:00
Alex Szpakowski
cf60cf89fc
De-namespaced a class, to make it less verbose.
2015-01-24 04:09:56 -04:00
Alex Szpakowski
e662fbdf80
Removed some dumb/redundant comments.
2015-01-24 03:52:09 -04:00
Alex Szpakowski
222d4cfdc8
Maybe fixed Windows build?
2015-01-24 03:43:52 -04:00
Alex Szpakowski
b876255442
Cleaned up some graphics code.
2015-01-24 03:39:05 -04:00
Alex Szpakowski
e71c15e650
Fixed a minor memory leak caused by certain rare error conditions in love.graphics.newCanvas.
2015-01-22 02:16:49 -04:00
Alex Szpakowski
5c46149afb
Properly set shader dirty flags for love_ScreenSize when love.window.setMode is called.
2015-01-21 21:46:33 -04:00
Alex Szpakowski
18569979e9
Better cleanup when the graphics and window subsystems are destroyed and restarted.
2015-01-21 18:23:16 -04:00
Alex Szpakowski
e82d1dfe54
Added Lua 5.3's UTF-8 module to LÖVE. Resolves issue #951 .
...
The module must be required before use, i.e. utf8 = require("utf8"). API documentation can be found here: http://www.lua.org/manual/5.3/manual.html#6.5
Removing the last unicode character in a string (for proper backspace support in text boxes, for example) can be done using utf8.offset, e.g. text = text:sub(1, utf8.offset(text, -1) - 1).
2015-01-21 16:52:56 -04:00
Alex Szpakowski
b4f2a9417a
Added new event callback love.mousemoved(x, y, xrel, yrel), where xrel and yrel are the amount of pixels moved since the last event. Added love.mouse.setRelative(bool relative) and love.mouse.isRelative. Resolves issue #470 .
...
Enabling relative mouse mode will hide the cursor and let the system generate relative mouse move events while preventing the mouse from getting stuck at the edges of the screen (i.e. you can keep moving the mouse in one direction forever and the relative movement events will be generated accordingly.)
The reported absolute mouse position is not updated while relative mode is enabled, even while relative movement events are generated.
2015-01-15 20:22:57 -04:00
Alex Szpakowski
dff496bdb5
Passing --console to love.exe now opens the console before conf.lua is loaded.
2015-01-15 17:48:04 -04:00
Alex Szpakowski
c26315dd4d
Actually a stop() in the Audio module destructor is redundant, since stop() is called by the Source pool when it's deleted (also in the destructor.)
2015-01-15 16:39:27 -04:00
Alex Szpakowski
6d3ae981ac
Moved the love.audio.stop call when love is quit from love.run to the destructor of the Audio module.
2015-01-15 16:36:52 -04:00
Alex Szpakowski
f1634bc6a8
The existence of the AL_EXT_MCFORMATS OpenAL extension is checked when creating 5.1 and 7.1 (6 and 8 channel) Sources. love.audio.newSource now errors if the channel count and bit-depth combination of the Source isn't supported.
2015-01-15 15:59:15 -04:00
Bart van Strien
12c358769c
Check if binary and library version match on startup ( resolves #860 )
2015-01-15 11:26:40 +01:00
foo0
e4eac17355
Fix Windows resource generation for love.dll (resolves issue #935 )
2015-01-15 11:10:46 +01:00
Bart van Strien
181196fc0c
Add support for 5.1 and 7.1 audio loading, still seems a bit dodgy (issue #970 )
2015-01-15 10:54:27 +01:00
Alex Szpakowski
fab029ae6b
Hopefully fixed the Windows build.
2015-01-14 15:55:49 -04:00
Alex Szpakowski
811f574ef6
Reference counting for love objects in 0.9.2 is now atomic (using SDL's atomic operation functions.)
2015-01-14 15:52:05 -04:00
Alex Szpakowski
1b41d546e2
Removed a Mac-specific workaround from love.run (pumping events before love.load so that love.mouse.setPosition works before love.update.)
...
It seems to be no longer necessary, and it was a partial workaround anyway.
2015-01-10 18:44:58 -04:00
Alex Szpakowski
91062a1496
Added Body/Contact/Fixture/Joint/World:isDestroyed (resolves issue #964.)
2015-01-05 00:14:41 -04:00
Alex Szpakowski
be9b5b5d1a
Added love.window.maximize (resolves issue #966.)
2015-01-05 00:00:46 -04:00
Alex Szpakowski
8a9a73151d
Pump events when calling love.mouse.getPosition/getX/getY/setX/setY, since some of SDL's backends don't update the internal mouse state until the next PumpEvents, if SDL_WarpMouseInWindow was called previously.
...
Resolves issue #968 .
2015-01-03 23:02:10 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
e6ff146e67
Updated changelog
2014-12-29 03:29:03 -04:00
Alex Szpakowski
fdee6f0e30
Fixed a misleading comment.
2014-12-23 04:01:03 -04:00
Alex Szpakowski
60eceadc0a
Added "mirroredrepeat" wrap mode.
2014-12-22 19:16:36 -04:00
Bart van Strien
ff01e6e63b
Merged in Anylo/love/Anylo/updated-year-from-2013-to-2014-1418642961070 (pull request #41 )
...
Updated year from 2013 to 2014.
2014-12-15 12:31:40 +01:00
Anylo
426813945e
Updated year from 2013 to 2014.
...
--HG--
branch : Anylo/updated-year-from-2013-to-2014-1418642961070
2014-12-15 11:29:26 +00:00
Alex Szpakowski
a7b27f3303
Forgot to remove a bit of code...
2014-12-11 21:23:06 -04:00
Alex Szpakowski
6eee2368be
Literal strings containing Lua code can be passed into love.thread.newThread directly, similar to loadstring and love.graphics.newShader (resolves issue #622.)
...
Threads are still *very* heavyweight objects and should be treated as such, unlike the functions returned by loadstring.
2014-12-11 21:22:12 -04:00