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
Bart van Strien
793ef5db01
Apply foo0's patch to disable mpg123 in cmake megasource builds (issues #931 and #404 )
2014-09-15 17:43:31 +02: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
Alex Szpakowski
f972c9923f
Fixed love.graphics.reset reverting the current font to nil and breaking love.graphics.print.
2014-09-11 02:42:56 -03:00
Alex Szpakowski
d1bdc9a7e2
Images and Canvases are now drawn using GL_TRIANGLE_FAN instead of GL_QUADS, for future compatibility with GLES and core GL3+.
...
--HG--
branch : minor
2014-09-07 13:19:27 -03:00
Bart van Strien
5b4ef23772
Move require path into filesystem module
...
--HG--
branch : minor
2014-09-05 07:57:42 +02:00
Alex Szpakowski
346aa7d839
Fixed a memory leak in Sources created from SoundData.
2014-09-04 13:33:18 -03:00
Bart van Strien
97cacf1b2d
Merge default into minor
...
--HG--
branch : minor
2014-09-03 18:11:20 +02:00
Bart van Strien
ddf6816548
Add a require path (much like package.path) to love.filesystem, allowing to override the searched file paths for require
...
--HG--
branch : minor
2014-09-03 18:01:21 +02:00
Alex Szpakowski
77bec45b4a
Fixed SpriteBatch:setBufferSize.
2014-08-31 01:15:58 -03: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
68b2c9e851
The default filter mode is now included in the state affected by love.graphics.push("all").
2014-08-29 01:31:16 -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
40c6821048
Removed some dead code and fixed luax_pushtype when the object argument is null.
2014-08-28 00:48:32 -03:00
Alex Szpakowski
52b62e8620
Fixed a case of using new[]/delete[] when malloc/free should have been used.
...
--HG--
branch : minor
2014-08-27 21:53:33 -03:00
Alex Szpakowski
b59e088d6c
Hopefully fixed the Windows build (see issue #921.)
...
--HG--
branch : minor
2014-08-27 08:17:40 -03:00
Alex Szpakowski
e26abb417e
Fixed indentation.
2014-08-27 01:04:58 -03:00
Alex Szpakowski
1e8c9e18c3
Fixed love.joystick.setGamepadMapping: the generated SDL controller mapping string is no longer invalid, and joystick hats are now properly converted to the SDL representation.
2014-08-27 00:58:42 -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
3f208f1e60
Fixed love.graphics.setShader with no arguments not properly restoring the default shader.
...
--HG--
branch : minor
2014-08-26 09:44:07 -03:00
Alex Szpakowski
8a7481eaa3
Added optional xoffset/yoffset/width/height arguments to Image:refresh, to specify a sub-rectangle. Specifying a small sub-rectangle can improve the performance of Image:refresh.
...
--HG--
branch : minor
2014-08-26 09:40:24 -03:00
Alex Szpakowski
760304e023
Fixed love.graphics.print.
...
--HG--
branch : minor
2014-08-26 08:08:09 -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
d6cd2e2e7e
Prettied up some code.
2014-08-26 00:05:08 -03:00
Alex Szpakowski
2a1e1d01d3
Merged default into minor
...
--HG--
branch : minor
2014-08-25 18:02:44 -03:00
Alex Szpakowski
d5e5f38e2f
Fixed Source:tell crashing if the Source is static.
2014-08-25 03:46:11 -03:00
Alex Szpakowski
766939bdd5
Removed mipmapping restriction on non-power-of-two Images.
...
--HG--
branch : minor
2014-08-25 01:37:05 -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
1978fa9910
Cleaned up a bit of unused code.
2014-08-22 17:44:52 -03:00
Alex Szpakowski
71c71985d3
Merged default into minor
...
--HG--
branch : minor
2014-08-21 16:53:43 -03:00
Alex Szpakowski
44b97dfadc
Updated the changelog.
2014-08-21 16:38:22 -03:00
Alex Szpakowski
8ffe610659
Added love.graphics.getStats. It returns a table with performance-related graphics statistics. Currently it contains these fields:
...
drawcalls: The number of internal draw calls made so far in the current frame.
canvasswitches: The number of times the active Canvas has been changed so far in the current frame.
texturememory: The approximate amount of video memory (in bytes) used by OpenGL textures created by Images, Canvases, and Fonts.
images: The number of active Image objects.
canvases: The number of active Canvas objects.
fonts: The number of active Font objects.
2014-08-21 15:01:29 -03:00
Alex Szpakowski
e1f7e4abd3
Added a 'refreshrate' field to the table returned by love.window.getMode. The value may be 0 if the refresh rate of the monitor can't be determined. It might also be 59 instead of 60 on 59.94hz monitors on some operating systems.
2014-08-20 20:22:46 -03:00
Bart van Strien
23f2d617e0
Remove accidentally left-behind filesystem wrappers, minor compiles again
...
--HG--
branch : minor
2014-08-19 16:06:54 +02:00
Alex Szpakowski
5f6ee50541
Replaced the GLee OpenGL function loader with a modified version of GLAD (resolves issue #728.)
...
--HG--
branch : minor
2014-08-18 21:35:52 -03:00
Alex Szpakowski
0c1b73e2ca
Reference counting for love objects is now atomic.
...
--HG--
branch : minor
2014-08-13 02:43:50 -03:00
Alex Szpakowski
df5e48a082
Merged default into minor
...
--HG--
branch : minor
2014-08-13 01:50:52 -03:00
Alex Szpakowski
9e93d854b8
love.image.isCompressed should return true if the file contains a compressed texture, even if the file's extension isn't 'dds'.
2014-08-12 18:09:07 -03:00
Alex Szpakowski
fcf8329369
Fixed detection of TGA and BMP images and updated stb_image to the latest version.
...
--HG--
branch : minor
2014-08-11 03:11:51 -03:00
Alex Szpakowski
43a148ce3e
Fixed detection of PNG images.
...
--HG--
branch : minor
2014-08-11 02:42:12 -03:00
Alex Szpakowski
1798115858
Error if the coordinates given to Canvas:getPIxel are not within [0, dimensions).
2014-08-10 03:09:16 -03:00
Alex Szpakowski
27c75a1323
Updated the changelog.
2014-08-09 23:14:28 -03:00
Alex Szpakowski
19bbf6d3ff
Merged bartbes/love-experiments/stencil-functions into minor
...
--HG--
branch : minor
2014-08-09 20:18:09 -03:00
Alex Szpakowski
9b1f7d7a6e
Merged default into minor
...
--HG--
branch : minor
2014-08-09 19:55:29 -03:00
Alex Szpakowski
d5ccdc040a
Cleaned up some Proxy-related code.
2014-08-09 16:18:22 -03:00
Alex Szpakowski
da7cd267ea
Changed luax_pushtype to retain the pushed object itself, but only if the object isn't in the Lua state already.
...
Previously, calling e.g. love.graphics.getFont() 10,000 times would retain the object 10,000 times (and release it 10,000 times when the Font object was garbage-collected in the Lua state.) Now it will only retain it once and release it once.
2014-08-09 16:04:59 -03:00