rude
ba4cf6204d
Added Canvas:getPixel(x, y). (pull request #17 )
2012-10-17 21:33:10 -04:00
rude
4e2c424cd1
Alexander's patch for improved mipmap API.
2013-01-19 11:25:25 +01:00
rude
de8b4d91a5
Use GLint when getting GL_GENERATE_MIPMAP.
...
Using GLboolean caused a stack corruption according to VS2012.
2013-01-12 12:53:07 +01:00
Bart van Strien
4221d55468
Enfore limits on ParticleSystem:setSizeVariation (issue #545 )
2013-01-18 21:03:07 +01:00
Bart van Strien
32684b674e
Add Font:getAscent/getDescent/getBaseline (issue #445 )
2013-01-18 13:20:40 +01:00
Bart van Strien
84b6eedf1f
Make the default point style to setPoint 'smooth' (issue #543 ), and fix setPointStyle ignoring normal operation
2013-01-18 12:43:43 +01:00
vrld
f3bf2bbfe5
Fix bug where the compat message crashed love.
...
If in conf.lua `t.screen' is set to false or nil, the OpenGL context will not
be initialized, leading to a crash in 'Font::print()' when printing the compat
message later on.
2012-10-17 18:36:32 +02:00
vrld
6c850fdc98
Possibly (code in issue does not fail on my machine) fix #486 . Please test.
2012-10-15 17:13:08 +02:00
Bart van Strien
9a15ca3998
Update changelog a bit
2012-10-14 17:41:12 +02:00
Bart van Strien
33d7115887
Make love.sound.newDecoder accept FileData, and make File->read return FileData
2012-10-14 17:19:40 +02:00
vrld
e6711b2837
Fix multiplicative blend mode.
2012-10-12 13:52:16 +02:00
vrld
48f5afcc0e
Throw error if invalid canvas type was supplied in l.g.newCanvas()
2012-10-12 13:14:40 +02:00
vrld
ccdf6e1c00
Fix Issue #476 : Add HDR Canvas (thanks, Alexander Szpakowski!).
...
* Add `love.graphics.isSupported("hdrcanvas")' to query whether the hardware
actually supports HDR canvases.
* Add optional third argument to `love.graphics.newCanvas(w,h, type)', where
`type' is one of "normal" or "hdr" and defaults to "normal". HDR canvases
use floating point that can have values > 1 to store pixels, allowing for
HDR rendering and other higher level lighting techniques when combined with
pixel effects.
* Add `canvas:getType()'.
2012-10-11 22:22:10 +02:00
Jay Roberts
7364e52ebc
Add math.cpp to Xcode project and fix GME framework path.
2012-10-09 13:05:13 -04:00
vrld
c75bc199ae
Remove ARB checks in PixelEffect::isSupported().
...
ARB fragment shaders shouldn't support GLSL 1.2 anyway.
2012-10-04 17:27:31 +02:00
vrld
e05e5f1d54
Add math.cpp to VS project file
2012-10-01 22:13:29 +02:00
vrld
5e3e24dcfb
love.run(): Sleep after presenting graphics buffer.
...
Less sluggish controls w/o vsync.
2012-10-01 22:11:51 +02:00
vrld
a39ddc9f1a
Close issue #480 : Extending Canvas support to cards without packed depth stencil.
2012-10-01 22:06:56 +02:00
vrld
e35854acdc
Remove love_ScreenSize from shaders.
...
PixelEffects would fail to load when screen_coords were unused.
Reopens issue #435 : "PixelEffects have flipped screen_coords.y".
2012-10-01 21:39:52 +02:00
vrld
e575c86246
Severe case of premature commit-ion.
2012-09-11 16:11:26 +02:00
vrld
fdf175d7d0
Partly fix issue #468 : Incorrect(?) detection of shader support.
...
Still need to figure out if we can use the ARB versions.
2012-09-11 15:21:39 +02:00
vrld
8ba6c2b523
Fix typos and compiler warnings (see comments to 2b3afd95a23f).
2012-09-11 14:29:05 +02:00
vrld
4ec7609d37
Fix issue #437 : Area-based particle spawn.
...
New particles are spawned around the particle emitter position according to a
configurabe distribution.
New functionality:
particlesystem:setAreaSpread(distributon, x, y)
distribution, x, y = particlesystem:getAreaSpread()
Where `distribution' is one of "none", "uniform", "normal".
`x' and `y' take different meaning based on the distribution:
* none: no area spread - particles spawned at emitter position.
* uniform: particle spawned at px,py in the rectangle around emitter
position ex,ey, i.e.:
ex - x < px < ex + x, ey - y < py < ey + y,
* normal: particle position drawn from a normal/gaussian distribution
with mean ex,ey and standard deviation x,y, i.e.:
px \in N(ex, x²), py \in N(ey, y²).
2012-09-10 19:58:44 +02:00
vrld
50fd169e07
Add random([[min], max]) and random_normal([o]).
...
Little helpers for drawing numbers from bounded uniform and Gaussian
distributions.
2012-09-10 19:45:54 +02:00
vrld
e9dcc16f16
Don't throw exception when loading module in thread.
...
The module registry throws an exception when trying to register a module
instances if an instance is already registered under the same name. This
backfired in love.thread when requiring love-modules.
2012-09-10 12:39:37 +02:00
Bart van Strien
8234e71c74
Add an ASSERT_GUARD for World:update, catching any errors occuring there
2012-08-28 17:47:23 +02:00
Bart van Strien
c4133f2489
(Hopefully) fix some issues with older version of autotools
2012-08-27 15:57:39 +02:00
rude
7baf22c0e3
Apply Boolsheet's GME leak patch.
2012-08-21 16:14:38 +02:00
Bart van Strien
63daffb22f
Correctly set the spacing for the last character in an ImageFont as well
2012-08-21 15:18:12 +02:00
Bill Meltsner
b24e7ab64f
Update the Xcode project and enable GME support on OS X.
...
Requires Game_Music_Emu.framework, which is included in the updated OS X SDK.
2012-08-18 11:56:42 -05:00
Bart van Strien
53c357d3c5
Apply Boolsheet's patch for the msvc2010 project file
2012-08-17 15:12:52 +02:00
vrld
87c6646705
Fix #435 (for real this time). Unfixes #324 .
...
Add a extern vec2 love_ScreenSize to the pixel effects that will
be (re)set upon PixelEffect::loadVolatile() and is used to flip
the fragment coordinate.
Unfixes #324 because canvases can have different dimensions than
the screen.
2012-08-05 16:08:22 +02:00
vrld
1fd12e4596
Add Module::registerInstance() and Module::getInstance().
...
Module::registerInstance() registers a module instance which can later
be retrieved using Module::getInstance().
registerInstance() is called in luax_register_module().
getInstance() expects the full name (as returned by Module::getName())
of the requested module.
2012-08-05 16:03:37 +02:00
vrld
6f1ff69b61
Fix issue #435 : PixelEffects have flipped screen_coords.y.
2012-08-03 19:39:41 +02:00
Bart van Strien
148b0c2f6d
Correctly read filter modes in newImageFont when the implicit newRasterizer is used (issue #437 )
2012-08-03 16:01:33 +02:00
Bart van Strien
00ee547a1c
Make unknown keys map to "unknown" in love.keypressed, at least allowing
...
you to get the (correct) unicode arg. (issue #337 )
2012-08-03 15:51:43 +02:00
Bart van Strien
85a1787ad8
Make SpriteBatch:setColor accept a table as well (issue #459 )
2012-08-03 15:27:59 +02:00
Boolsheet
cde5aa3307
Import box2d-contacts branch from love-experiments
...
Fix issues with Contact lifetime, based on the work of
Matteo "teomat" Goggi
2012-07-24 23:59:42 +02:00
Bart van Strien
82d6edb32c
Update readme
2012-07-21 21:56:10 +02:00
Bart van Strien
b10bc87b9a
Make love.graphics.setCanvas(nil) error
...
This helps detect typoes, setCanvas() still works as before
2012-07-21 17:51:54 +02:00
Marc Lepage
e5c4f7f43c
Remove call to glAlphaFunc as alpha testing is never enabled.
2012-07-17 21:33:16 -04:00
Marc Lepage
4cc0056a21
Fix some typos in comments.
2012-07-12 00:21:25 -04:00
vrld
6d02057864
Close issue #408 : printf-justify alignment.
...
Add letter_spacing argument to Font::print(). Might be worth to expose to Lua
at some point. Justify alignment may result in mushy/blurred glyphs.
2012-07-08 13:37:09 +02:00
vrld
12f714bf74
Issue #419 : Make font:getWidth(str) account for newlines.
2012-07-05 16:15:38 +02:00
vrld
85fa71c519
Make love.graphics.getFont() return (and set) default font when no font set.
...
Use closures instead of love.graphics.print(f)1() and love.graphics.newFont1.
2012-07-05 16:14:44 +02:00
Bart van Strien
ab62ac841e
Filter changelog, I don't care what the changes to the binaries are,
...
this changelog is about changes to the source.
2012-07-04 17:25:57 +02:00
Bart van Strien
34d576cdc6
Fix --disable-mpg123
2012-07-04 17:24:31 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
Bart van Strien
a970f1df97
Update changelog
2012-07-04 13:54:15 +02:00
Bart van Strien
915d58c62f
Add --enable-gme to the linux configure script
2012-07-04 13:51:33 +02:00