Alex Szpakowski
ad1fbbf3ea
Merged default into minor
...
--HG--
branch : minor
2015-01-29 21:27:05 -04:00
Alex Szpakowski
423e35fd76
TrueType rasterizers now error properly when given an invalid size argument.
2015-01-29 20:38:12 -04:00
Alex Szpakowski
83e0efb5b4
Fixed indentation.
...
--HG--
branch : minor
2015-01-26 14:42:53 -04:00
Alex Szpakowski
a69f722f0f
love.math.setRandomSeed / RandomGenerator:setSeed now hashes the seed value before using it, which gives a much better distribution when comparing the results of different but similar seeds.
...
Cleaned up RandomGenerator:setState/getState, now that love is using the C++11 standard library.
--HG--
branch : minor
2015-01-26 14:13:42 -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
b4bacb38a6
Fixed love.graphics.getShader() to return nil when no shader is set, fixed a potential (harmless) OpenGL error when OpenGL ES is used.
...
--HG--
branch : minor
2015-01-24 03:21:33 -04:00
Alex Szpakowski
d58505012b
Added OpenGL ES support for the 'none' line join mode.
...
--HG--
branch : minor
2015-01-24 00:05:39 -04:00
Alex Szpakowski
970704c2b7
Added Text objects via love.graphics.newText(font [, textstring]). Reworked the internal code of Font objects to use fewer individual textures and less VRAM per object, and to be compatible with OpenGL ES. Slightly improved the performance of love.graphics.print and love.graphics.printf.
...
Text objects are Drawable objects that represent text on the screen. They decouple text drawing from text parsing and vertex uploading, in a similar manner to SpriteBatches. They also optionally allow efficient batching of text from the same Font in different relative coordinate transformations, without having many draw calls.
Text objects currently have the following methods:
Text:set(textstring) -- replaces any existing text in the object with the new string.
Text:setf(textstring, wraplimit, alignmode) -- replaces any existing text with formatted text using the new string.
Text:getFont() -- gets the Font object used for this Text object.
Text:getWidth() -- gets the width in pixels of the most recently added text in the Text object.
Text:getHeight() -- gets the height in pixels of the most recently added text in the Text object.
Text:add(textstring, x, y, angle, sx, sy, ox, oy, kx, ky) -- adds a new string to the text object using the specified relative coordinate transformation, without replacing existing text. This behaves much like SpriteBatch:add.
Text:addf(textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky) -- adds a new formatted string to the text object using the specified relative coordinate transformation.
Text:clear() -- clears all text from the object.
--HG--
branch : minor
2015-01-23 00:47:28 -04:00
Alex Szpakowski
27aec48d1a
Updated love.graphics.polygon and love.graphics.point to work with OpenGL ES.
...
--HG--
branch : minor
2015-01-22 18:28:24 -04:00
Alex Szpakowski
2c3d94b4f8
No codename for 0.10.0 yet.
...
--HG--
branch : minor
2015-01-22 17:33:01 -04:00
Alex Szpakowski
5b98083e01
Merged default into minor
...
--HG--
branch : minor
2015-01-22 02:18:56 -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
9de0e49b19
Optimized canvas performance when ANGLE is used.
...
--HG--
branch : minor
2015-01-22 02:12:26 -04:00
Alex Szpakowski
15538426d7
Added support for creating OpenGL ES 2 and 3 contexts, and updated the OpenGL context creation code to be more robust in general.
...
If the LOVE_GRAPHICS_USE_OPENGLES environment variable is set, then love will try to create an OpenGL ES context before falling back to regular OpenGL. If it's not set (or set to 0), then the opposite happens except when love is run on backends that should always use OpenGL ES.
--HG--
branch : minor
2015-01-22 01:02:01 -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
be8b7dd504
glLoadIdentity isn't part of GLES2+ or core GL3+.
...
--HG--
branch : minor
2015-01-21 21:42:24 -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
5df56d041a
Added GLSL ES 1.00 (OpenGL ES 2) shader support.
...
--HG--
branch : minor
2015-01-20 22:31:54 -04:00
Alex Szpakowski
8067d42df2
Canvases now have OpenGL ES support, updated Texture:setWrap to return false for repeat wrap modes in non-power-of-two textures if OpenGL ES 2 is used and the implementation doesn't have support for repeat on NPOT textures.
...
--HG--
branch : minor
2015-01-20 15:13:59 -04:00
Alex Szpakowski
18ab3973e8
Added support for ETC2/EAC compressed textures. Changed the CompressedFormat enum names to capitalize the format names (e.g. "PVR1rgba4" instead of "pvr1rgba4".) Improved sRGB support for compressed textures.
...
--HG--
branch : minor
2015-01-20 07:53:44 -04:00
Alex Szpakowski
c1d4613ff7
Updated stb_image to 2.0.2.
...
--HG--
branch : minor
2015-01-20 03:40:08 -04:00
Alex Szpakowski
dfdd52e499
Added support for ETC1 and PVR1 compressed textures contained in KTX, PKM, and PVR files.
...
Most desktop graphics drivers don't support those formats.
--HG--
branch : minor
2015-01-20 03:18:28 -04:00
Alex Szpakowski
319ccc2f25
Updated changelog for 0.10.0.
...
--HG--
branch : minor
2015-01-20 00:40:17 -04:00
Alex Szpakowski
60c6b6a155
Cleaned up the code that triggers an error when using spatial Source methods on multi-channel Sources.
...
--HG--
branch : minor
2015-01-19 23:55:44 -04:00
Alex Szpakowski
3db4e8dea0
Fixed compilation on systems other than my own...
...
--HG--
branch : minor
2015-01-19 23:32:45 -04:00
Alex Szpakowski
1124612c1f
Some work towards OpenGL ES 2+ support for love 0.10.
...
--HG--
branch : minor
2015-01-19 23:32:16 -04:00
Alex Szpakowski
1253e3aae1
Updated version to 0.10.0.
...
--HG--
branch : minor
2015-01-16 15:54:18 -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
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
Bart van Strien
3f801fda0c
Fix GLAD bug that caused compilation with luajit headers to fail
...
--HG--
branch : minor
2015-01-15 10:31:16 +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
Bart van Strien
ca343e063e
Allow require paths without replacements
...
--HG--
branch : minor
2015-01-14 15:17:16 +01:00
Bart van Strien
13594e3e38
Add missing include
...
--HG--
branch : minor
2015-01-14 15:16:04 +01: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