Bart van Strien
e80247c191
Happy new year! ✨
2018-01-03 19:47:35 +01:00
Bart van Strien
f4e515edac
Suppress unused variable warning on linux
...
--HG--
branch : minor
2017-10-16 14:46:06 +02:00
Alex Szpakowski
2eb9b3bdcd
love.timer.step now returns the calculated dt directly.
...
--HG--
branch : minor
2017-07-23 19:56:48 -03:00
Alex Szpakowski
abb72cb813
Happy new year! 🥂
...
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski
1e24a19bea
Fix compilation..
...
--HG--
branch : minor
2016-12-10 16:25:09 -04:00
Alex Szpakowski
d7feb20df9
Remove love.timer SDL implementation files, since they don’t do anything.
...
--HG--
branch : minor
2016-12-10 16:21:48 -04:00
Bart van Strien
c761202486
Build type information on first use (load-time), instead of using a hardcoded list
...
--HG--
branch : dynamiccore2
2016-11-13 16:38:57 +01:00
Alex Szpakowski
36cc48d306
Move the Timer::sleep implementation up from timer/sdl/Timer.cpp to timer/Timer.cpp, since it doesn't directly use any SDL-specific code.
2016-03-18 23:01:49 -03:00
Alex Szpakowski
b983588d2e
We don't need to initialize the SDL timer subsystem to use SDL_Delay, and initializing it causes SDL to create a worker thread (which it uses for SDL_AddTimer and friends, which we don't use).
2016-03-18 22:58:48 -03:00
Alex Szpakowski
a0bbcce8ee
The video decoding thread efficiently waits for a video to be created before doing anything, rather than sleeping for 2ms in a loop. Reduces the CPU usage of the video worker thread to ~0% when no videos are loaded.
2016-03-05 21:56:51 -04:00
Alex Szpakowski
cf4b409302
Renamed some things.
2016-02-18 22:11:41 -04:00
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Bart van Strien
22f2175bec
Add initial video playback support for Ogg Theora videos (resolves issue #66.)
...
The basic APIs are:
video = love.graphics.newVideo("myvideo.ogv")
love.graphics.draw(video, ...) -- Video objects are Drawables.
video:play(), video:pause()
video:getDuration(), video:tell(), video:rewind(), video:seek(seconds)
video:getSource()
video:getWidth(), video:getHeight(), video:setFilter(min, mag)
More advanced APIs include video:setSource(source), video:getStream(), and videostream:setSync.
To use a custom pixel shader when drawing a Video, call the new TexelVideo(texcoords) function instead of Texel(texture, texcoords) in order to get the pixel colors of a video frame.
2015-12-08 22:41:19 -04:00
Alex Szpakowski
2c4e713114
Imported some of the dynamiccore branch from love-experiments:
...
- Type names for love's Lua objects are specified as an argument to luax_register_type, rather than being statically defined in an array.
- luax_register_type takes a variable number of method array arguments, for registering superclass methods without copying them into the subclass' method array.
Also removed most of the header declarations for wrapper functions.
2015-11-29 20:38:12 -04:00
Alex Szpakowski
0f986b10aa
Cleaned up some code, the 'ry' parameter of love.graphics.rectangle now defaults to the value of 'rx' rather than defaulting to 0.
2015-05-27 17:36:27 -03:00
Alex Szpakowski
cffa899e03
Explicitly mention SDL in the error message caused by SDL subsystem initialization failure.
2015-03-26 14:51:47 -03:00
Alex Szpakowski
163d059305
Moved most of the love.timer code out of the sdl implementation folder.
2015-03-20 00:55:14 -03: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
85de3c41fb
Initial iOS implementation.
...
--HG--
branch : minor
2015-02-20 00:21:21 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04: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
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
fda005c5ff
love.graphics.getScissor now has a proper C++ module method
2014-01-09 22:49:00 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
2ee869b0e8
Fixed some compiler warnings
2013-12-07 05:07:54 -04: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
Alex Szpakowski
ff77eb4b29
Added love.window (issue #6.) All window-related functions have been moved from love.graphics to love.window.
...
love.graphics.setCaption has been renamed to love.window.setTitle.
2013-05-10 22:32:15 -03:00
Alex Szpakowski
9fc2a085cd
Updated love.timer.getTime to be microsecond-precise and monotonic (thanks Boolsheet), removed the now-obsolete love.timer.getMicroTime (issue #492 )
2013-05-09 23:12:50 -03:00
Alex Szpakowski
d5aa807747
More internal code cleanup
2013-03-31 19:02:27 -03:00
Alex Szpakowski
b9533d5cb8
Fixed love.timer.getFPS and love.timer.getAverageDelta during the first second of runtime
2013-03-30 21:56:57 -03:00
Alex Szpakowski
ce71bc0847
Fixed love.timer.step / dt
2013-03-11 02:00:25 -03:00
Bart van Strien
63c57ba3f8
Make love.timer.getFPS and love.timer.getAverageDelta microsecond-accurate
2013-03-10 22:16:23 +01:00
Bart van Strien
28af989a00
Add love.timer.getAverageDelta (issue #570 ) and constify love.timer.sleep
2013-03-10 22:07:24 +01:00
Alex Szpakowski
668a1bfa6d
Silenced some compiler warnings
2013-02-09 21:24:41 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bart van Strien
dcb09c03a8
That was only part of the problem, now it should all work properly (and more accurately)
2012-03-03 11:42:39 +01:00
Bart van Strien
c2fb5618c1
Make love.timer.getFPS more accurate
...
Hopefully this was causing issue #377 , otherwise, it was still an improvement
2012-03-03 10:47:57 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
rude
2753c62985
Abstractify some modules completely: timer, keyboard and mouse.
...
If this commit breaks some project file(s), well ...
I AM RUDE AND I WILL BREAK EVERYTHING, AHAHAHAHAHAHAHHAHAHAHAHA!
2011-10-28 10:47:16 +02:00
Bart van Strien
66ecf8aff0
Apply patch for increased timer accuracy (issue #303 )
2011-10-02 16:11:24 +02:00
Bart van Strien
eb7053b43f
Switch love.timer over to double precision floats
2011-09-30 14:57:03 +02:00
Bart van Strien
3d1fac07b2
Switch love.timer.sleep to seconds
2011-08-28 17:12:59 +02:00
Przemysław Grzywacz
1d5fca6f46
Multiple thread backends.
2011-06-08 16:54:35 +02:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
Bill Meltsner
7c33786100
fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)
2010-02-26 03:55:21 -05:00