vrld
f32d770cf6
Add BezierCurve:getSegment(t1, t2)
...
Returns a BezierCurve that corresponds to the curve-segment between t1 and t2
on the original curve.
2015-03-22 19:22:18 +01:00
muddmaker
3a54d4599a
fix conflicts
2015-03-21 18:15:41 -07:00
Alex Szpakowski
2f419c1c83
Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
...
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
Alex Szpakowski
ebc68023a7
Fix many warnings about implicit integer conversions when compiling for 64 bits.
...
--HG--
branch : minor
2015-02-20 01:20:08 -04:00
muddmaker
47a4cc34a5
universal indexing rules in BezierCurve
2014-12-31 23:19:07 -08:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
muddmaker
2c5f7dc896
add removeControlPoint; improve exception handling
2014-12-22 17:57:44 -08:00
muddmaker
ccd856255d
fix last commit
2014-10-02 18:22:54 -07:00
muddmaker
238656ecc1
Added BezierCurve:renderSegment
2014-09-30 17:36:10 -07: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
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
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
e2eb99a6af
Added BezierCurve:getControlPointCount (resolves issue #759 )
2013-10-11 02:53:53 -03:00
Alex Szpakowski
bcee9a222b
Made some float/int/unsigned char conversions explicit, fixed ParticleSystem:getColors, fixed love.mouse.isDown with x1 and x2 buttons
2013-09-26 00:36:50 -03:00
Alex Szpakowski
06f2ec8e31
Renamed BezierCurve:eval to BezierCurve:evaluate (resolves issue #722 )
2013-09-23 20:40:58 -03:00
Alex Szpakowski
06f80d5c08
Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729 )
2013-09-05 23:17:29 -03:00
vrld
6b51c5aadc
Fix issue #724 : Bezier curve rendering/eval crashes with empty curves.
2013-08-29 08:31:58 +02:00
Alex Szpakowski
ec9dec6b80
Replaced luax_newtype with luax_pushtype (and added luax_rawnewtype for the old functionality of luax_newtype.)
...
luax_pushtype keeps the object in a weak table and checks the table before creating a new userdata, so it re-uses the object's existing wrapper userdata if it can, whenever the object is pushed to Lua.
This fixes some subtle issues with love objects, where using them as keys in tables would not always work as expected (https://love2d.org/forums/viewtopic.php?f=4&t=39398&p=112388#p112415 ). It also decreases the amount of new Lua objects created, saving the garbage collector some work.
2013-08-29 00:40:06 -03:00
Alex Szpakowski
1375aaccb5
Renamed BezierCurve:move to BezierCurve:translate (resolves issue #723 )
2013-08-28 19:10:18 -03:00
vrld
983496238f
[BezierCurve] Add getDerivative(), move(), rotate() and scale().
2013-08-21 21:44:31 +02:00
vrld
aa4d96317f
[bezier curve] add missing files
2013-05-12 22:01:12 +02:00