Alex Szpakowski
720d2890eb
Merge branch 'master' into 12.0-development
2020-05-23 14:37:01 -03:00
Alex Szpakowski
44033cd143
Fix a compile error on macOS/iOS
2020-05-21 20:08:43 -03:00
Joel Schumacher
1c5b8431ca
Remove usage of invalid timespec
...
Also add a comment to clarify why the subtraction of timespec values
should work.
2020-05-22 00:33:47 +02:00
Joel Schumacher
ba37b262c0
Fix getTime for Windows
2020-05-21 16:02:12 +02:00
Joel Schumacher
0a5db1ba6d
Subtract start time before double conversion
...
To preserve precision the subtraction of the start time happens with
integer values now and the platform specific implementations have been
split completely.
2020-05-21 15:56:57 +02:00
Joel Schumacher
8d627c88ae
Fix comment regarding first invocation of getTime
2020-05-21 15:56:43 +02:00
Joel Schumacher
b9dd24d3ce
Make getTime() relative to first invocation
2020-05-20 23:49:45 +02:00
Alex Szpakowski
5f9b5a21d0
Merge default into minor
...
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
bc12312f0f
macOS: rename most internal uses of "macosx" to "macos".
...
--HG--
branch : minor
2019-12-22 17:54:20 -04:00
Alex Szpakowski
b439ff07ce
Allow love.timer.sleep(0).
2019-04-02 20:12:09 -03:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
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