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
df5e48a082
Merged default into minor
...
--HG--
branch : minor
2014-08-13 01:50:52 -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
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
Alex Szpakowski
191b910f23
Fixed love.graphics.newScreenshot potentially deleting any active Canvases.
2014-08-08 18:49:11 -03:00
Alex Szpakowski
0749272632
Renamed love.graphics.drawStencil to love.graphics.stencil.
...
--HG--
branch : stencil-functions
2014-08-08 00:56:52 -03:00
Alex Szpakowski
2b70d84611
Replaced the old stencil API with love.graphics.drawStencil(stencilfunc), love.graphics.setStencilTest(enable, invert), and love.graphics.getStencilTest.
...
Draw to the stencil buffer (rather than the color buffer) using love.graphics.drawStencil with a function which draws geometry. Once the stencil buffer has been drawn to, use love.graphics.setStencilTest before drawing to let drawn geometry be affected by it.
love.graphics.clear (and Canvas:clear) will clear both the color and stencil buffers by default. love.graphics.clear("stencil") will clear only the stencil buffer.
--HG--
branch : stencil-functions
2014-08-08 00:25:44 -03:00
Alex Szpakowski
53e63d48c9
Merged default into minor
...
--HG--
branch : minor
2014-08-07 18:10:19 -03:00
Alex Szpakowski
d59c76a55f
Reduced the number of explicit retain/release method calls on love objects. Less chance of bugs!
2014-08-07 14:53:17 -03:00
Alex Szpakowski
a0fff798aa
Fixed compiling with Visual Studio.
2014-08-07 01:12:48 -03:00
Alex Szpakowski
afc505e183
Added stack type enums to love.graphics.push (resolves issue #906.) Current enums are "transform" and "all". "transform" is the default (for compatibility.) When love.graphics.push("all") is used, love.graphics.pop() will restore all love.graphics module state to what it was when push was called.
...
Updated the graphics code to use a custom matrix stack rather than OpenGL1's APIs.
2014-08-06 22:25:29 -03:00
Alex Szpakowski
809ea8691f
Fixed wireframe mode not being saved and restored properly on love.window.setMode.
2014-08-04 22:02:47 -03:00
Alex Szpakowski
aa05664d4c
Merged default into minor
...
--HG--
branch : minor
2014-07-30 01:32:10 -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
Alex Szpakowski
88211ede8f
Merged default into minor
...
--HG--
branch : minor
2014-07-13 20:26:51 -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
75cf164507
Error when the second argument to love.graphics.newImage isn't a table.
...
--HG--
branch : minor
2014-07-10 16:13:42 -03:00
Alex Szpakowski
a1d67f0788
Replaced love.graphics.isSupported and love.graphics.getSystemLimit with love.graphics.getSupported and love.graphics.getSystemLimits, which return tables with graphics feature / system limit enum names as keys, and support status / limit numbers as values.
...
Removed the 'hdrcanvas', 'dxt', and 'bc5' graphics feature enums now that they're deprecated in 0.9.x in favour of getCanvasFormats and getCompressedImageFormats.
--HG--
branch : minor
2014-07-08 14:09:00 -03:00
Alex Szpakowski
e3f9c0dca4
Merged default into minor
...
--HG--
branch : minor
2014-07-08 14:01:55 -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
56653fa946
Merged default into minor
...
--HG--
branch : minor
2014-06-19 15:06:59 -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
Bart van Strien
fb3aa060b2
Fix Texture leak in Meshes
2014-06-18 14:34:05 +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
2bfa8dbfb5
Merged default into minor
...
--HG--
branch : minor
2014-06-16 03:09:04 -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
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
8483ea31a1
Changed love.graphics.newImage's optional second argument to be a table of flags. Current flags are 'mipmaps' and 'srgb'.
...
If mipmaps are enabled on image creation, the image will use the default mipmap filter (now 'nearest' by default.) Image:setMipmapFilter will error if the image was not created with mipmaps enabled.
--HG--
branch : minor
2014-06-05 17:19:31 -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
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
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
e0f045c310
SpriteBatches are a little more intelligent about how much data they upload to the GPU when they're flushed or drawn, now
...
--HG--
branch : minor
2014-05-29 17:11:03 -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
3551438e9f
Don't accidentally enable point smoothing on setMode
...
--HG--
branch : minor
2014-05-22 21:18:07 -03:00
Alex Szpakowski
54f3a7f8af
Removed some OSX-specific code
...
--HG--
branch : minor
2014-05-21 21:40:56 -03:00
Alex Szpakowski
9c717cc3a3
Changed SpriteBatch:add/set to do an internal bind, and love.graphics.draw(SpriteBatch) to do an internal unbind. Removed SpriteBatch:bind/unbind, and added SpriteBatch:flush.
...
Resolves issue #886 .
--HG--
branch : minor
2014-05-21 21:35:07 -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
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