Alex Szpakowski
67aede6bc0
Merged default into minor
...
--HG--
branch : minor
2015-02-02 01:13:21 -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
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
5df56d041a
Added GLSL ES 1.00 (OpenGL ES 2) shader support.
...
--HG--
branch : minor
2015-01-20 22:31:54 -04:00
Alex Szpakowski
a7e4148869
Merged default into minor
...
--HG--
branch : minor
2015-01-16 15:47:26 -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
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
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
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
8d0654a6a7
Added runtime drag-and-drop file and folder support via new love.filedropped and love.directorydropped event callback functions. filedropped has a single File object argument, and directorydropped has a single string argument containing the full path of the directory, which can be used with love.filesystem.mount.
...
--HG--
branch : minor
2014-10-18 20:30:36 -03:00
Alex Szpakowski
d4ad571780
Un-reverted commit 14ca947 (love.math.setRandomSeed internally calling random() a few times) for the minor branch.
...
--HG--
branch : minor
2014-09-28 16:05:17 -03:00
Alex Szpakowski
8edb90a719
Added support for loading BMFont bitmap font files with love.graphics.newFont (see issue #190.) Some esoteric BMFont features are not supported.
...
Moved the Font module Lua wrapper code out of the freetype implementation folder.
--HG--
branch : minor
2014-09-28 16:00:40 -03:00
Alex Szpakowski
34688e929e
Merged default into minor
...
--HG--
branch : minor
2014-09-28 15:56:04 -03:00
Alex Szpakowski
e8009bb4cb
Reverted commit 14ca947 (love.math.setRandomSeed internally calling random() a few times.) The change can break existing 0.9.x games so it will be pushed back to the minor branch.
2014-09-28 15:28:14 -03:00
Alex Szpakowski
aba33bf2e7
Merged default into minor
...
--HG--
branch : minor
2014-09-20 00:34:34 -03:00
Alex Szpakowski
b75e1bdeaa
Added love.window.setPosition(x, y [, displayindex]), love.window.getPosition, and optional x and y fields for t.window in love.conf and for the flags table in love.window.set/getMode (resolves issue #930.)
2014-09-19 16:19:55 -03:00
Alex Szpakowski
fffbd3ecab
Merged default into minor
...
--HG--
branch : minor
2014-09-18 02:15:20 -03:00
Alex Szpakowski
417173b43a
GLSL precision qualifiers (lowp, mediump, highp) can now be used for variables in shader code on desktops without causing a compile error, although they do nothing.
2014-09-16 22:34:22 -03:00
Alex Szpakowski
604bc34106
Hopefully fixed the default filesystem identity when a game is fused to the executable in Windows.
2014-09-16 14:24:04 -03:00
Alex Szpakowski
00944c5f5d
Added love.window.toPixels(x [, y]) and love.window.fromPixels(x [, y]), for easier conversion between window-space and pixel-space values when highdpi mode is enabled on a retina display in OS X (and in the iOS and Android ports of LÖVE.)
2014-09-14 15:58:37 -03:00
Bart van Strien
97cacf1b2d
Merge default into minor
...
--HG--
branch : minor
2014-09-03 18:11:20 +02:00
Alex Szpakowski
c502847802
Enable strict mode for shaders on some nvidia drivers. Should hopefully prevent some issues where nvidia GLSL compilers let things slide that should be illegal.
2014-08-31 00:51:54 -03:00
Alex Szpakowski
6f6bf6a2bb
Merged default into minor
...
--HG--
branch : minor
2014-08-30 22:08:10 -03:00
Alex Szpakowski
ab9954272a
Updated the initialization code to trigger a real Lua error if love.conf has an error in it.
2014-08-28 20:39:49 -03:00
Alex Szpakowski
626701fc2b
Merged default into minor
...
--HG--
branch : minor
2014-08-26 23:23:17 -03:00
Alex Szpakowski
1449a81bdf
Removed some dead code.
2014-08-26 22:16:01 -03:00
Alex Szpakowski
3a51f0ad08
Changed the love.graphics internal code to always use a default shader when none is set externally, and replaced the deprecated OpenGL vertex attribute code with the equivalent generic vertex attribute functions.
...
This will simplify the code and make it more maintainable when OpenGL ES 2+ support is added, compared to using the deprecated VA functions on desktop GL and the generic VA functions on GLES.
--HG--
branch : minor
2014-08-26 03:24:42 -03:00
Alex Szpakowski
2a1e1d01d3
Merged default into minor
...
--HG--
branch : minor
2014-08-25 18:02:44 -03:00
Alex Szpakowski
234ee0fea6
Fixed the default error handler's background color when sRGB is enabled for the screen.
2014-08-22 17:58:07 -03:00
Alex Szpakowski
2c7ee6959e
Renamed the fullscreen type "normal" to "exclusive".
...
--HG--
branch : minor
2014-07-30 01:38:45 -03:00
Alex Szpakowski
88211ede8f
Merged default into minor
...
--HG--
branch : minor
2014-07-13 20:26:51 -03: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
2bfa8dbfb5
Merged default into minor
...
--HG--
branch : minor
2014-06-16 03:09:04 -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
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
bfa3ec9369
Merged default into minor
...
--HG--
branch : minor
2014-06-05 03:02:50 -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
db4acdbab6
Fixed the no-game screen
...
--HG--
branch : minor
2014-05-29 01:18:02 -03:00
Alex Szpakowski
53b20b63a5
Merged default into minor
...
--HG--
branch : minor
2014-05-21 21:16:37 -03:00
Alex Szpakowski
fd5b5aad65
Minor code cleanup
2014-05-21 21:14:08 -03:00
Alex Szpakowski
0372977dfa
Backout changeset 6dd72101871f163ee0e644c751f80773d45f339f
...
The change should only be done for GLES, not desktop GL - their specifications differ on this.
2014-05-03 22:21:45 -03:00
Alex Szpakowski
5428a5d75f
Backout changeset b3928e24add23da69dcd90c34985cd6a05454be0
2014-05-03 22:07:32 -03:00
Alex Szpakowski
4bc96f1bf6
Internally compose and pass an array of shader source codes to OpenGL, instead of relying on #line to make sure the line number is correct for shader error messages (resolves issue #882 )
2014-05-03 21:43:20 -03:00
Bart van Strien
9972153696
Use '#line 1' instead of '#line 0' in shader sources, for compatibility with GLES ( fixes #882 )
2014-05-03 14:50:08 +02:00
Alex Szpakowski
1b61091aae
Removed the 'wu' and 'wd' constants for love.mousepressed, added new love.wheelmoved(x, y) event callback.
...
+x is mousewheel-right, +y is mousewheel-up.
--HG--
branch : minor
2014-04-19 21:36:06 -03:00
Alex Szpakowski
e0134a305c
Merged default into minor
...
--HG--
branch : minor
2014-04-15 18:35:33 -03:00
Alex Szpakowski
4ea18d8bbc
love.math.setRandomSeed now calls random() a couple times internally, to make similar seeds give less similar results when random() is called for the first time after setRandomSeed.
2014-04-05 18:55:05 -03:00