Commit Graph

2751 Commits

Author SHA1 Message Date
Miku AuahDark b092347823 Enable JIT in Android 2020-06-10 12:22:16 +08:00
Alex Szpakowski 0fae32706d Fix a crash on Windows. Resolves #1570. 2020-05-23 15:19:28 -03:00
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 d13e97fd83 Merge branch 'master' into 12.0-development 2020-03-15 19:25:48 -03:00
Alex Szpakowski 8fac08809a Eliminate redundant glActiveTexture calls when shaders are used.
The redundant calls were introduced with the previous commit.
2020-03-15 19:24:49 -03:00
Alex Szpakowski c5b6cc3228 Merge branch 'master' into 12.0-development 2020-03-15 19:17:04 -03:00
Alex Szpakowski 9c2454816f Fix the active GL texture unit not always being set properly.
Fixes issues where texture methods wouldn't have any effect, depending on the current internal opengl state.
2020-03-15 01:29:33 -03:00
Alex Szpakowski 5db1e835ce Prevent stb_image from exporting public symbols in the love dll 2020-03-07 16:09:40 -04:00
Alex Szpakowski e0ff593d09 Fix love.graphics.newTexture(imagedata, {canvas=true}) not using an sRGB format when it should 2020-03-04 20:37:41 -04:00
Alex Szpakowski 10fbdf68f4 Fix love.graphics.newCanvas(w, h) not creating a canvas-capable texture 2020-03-04 20:36:06 -04:00
Alex Szpakowski 2cff535eb1 Move shader parsing code from Lua to C++. 2020-03-03 19:30:22 -04:00
Alex Szpakowski e71f27c65d Move Lua wrapper code for Variants out of the Variant class file. 2020-02-28 21:54:03 -04:00
Alex Szpakowski b95788c104 Shader:send now returns false if the uniform doesn't exist
It also returns false if the uniform exists but was optimized out by the shader compiler. Previously it would cause a Lua error in both situations.
2020-02-27 20:19:55 -04:00
Alex Szpakowski 9425c9224b Rename internal batched draw code to be more clear 2020-02-27 20:08:50 -04:00
Alex Szpakowski ac524e681a Change the default font from Vera size 12 to Noto Sans size 13.
Resolves issue #1075.
2020-02-17 01:55:49 -04:00
Alex Szpakowski 7c34345fa6 Rename new/set/getRenderTarget back to new/set/getCanvas, for now.
The setRenderTarget/setCanvas API will likely change before 12.0 is released, so there's no reason to rename things unnecessarily before then.
2020-02-16 19:42:11 -04:00
Alex Szpakowski b8f20ed8db Merge pull request #5 from MikuAuahDark/replace-mpg123
Replace Mpg123 with dr_mp3
2020-02-16 18:34:07 -04:00
Miku AuahDark 7697f34c5d Fix compile error. 2020-02-16 16:01:28 +08:00
Miku AuahDark afd68a95a2 Remove more mpg123-related reference. 2020-02-16 14:42:54 +08:00
Miku AuahDark 2b03e25c65 Remove Mpg123 decoder files. 2020-02-16 14:35:36 +08:00
Miku AuahDark 1076ee6112 Add non-mpg123 MP3 decoder. 2020-02-16 14:25:40 +08:00
Miku AuahDark 851c2f315e Move dr_flac/dr_flac.h to dr/dr_flac.h 2020-02-16 14:00:45 +08:00
Alex Szpakowski 024d9443a0 Merge branch '12.0' into Texture 2020-02-15 13:53:15 -04:00
Alex Szpakowski a0a933a1b9 Merge branch 'master' into 12.0 2020-02-15 13:51:12 -04:00
Alex Szpakowski 15f0e4109b Fix a typo in a comment 2020-02-15 13:50:47 -04:00
Alex Szpakowski 185498ba6d Fix depth sample mode validation checking the wrong state. 2020-02-15 13:49:04 -04:00
Alex Szpakowski 4ec9cafdea Better error checking in the GL texture backend 2020-02-12 22:57:13 -04:00
Alex Szpakowski 5c06b2a860 Replace getCanvas/ImageFormats with getTextureFormats 2020-02-12 22:25:04 -04:00
Alex Szpakowski f5f7e908a9 Rename love.graphics.get/setCanvas to get/setRenderTarget
Rename 'canvasswitches' field in love.graphics.getStats to 'rendertargetswitches'.
2020-02-12 21:50:23 -04:00
Alex Szpakowski 8478a870a9 Add new*Texture variants which don't require image files.
Update the no-game screen to avoid deprecated functions.
2020-02-12 20:07:35 -04:00
Alex Szpakowski ceb854db5b rename new[Cube|Array|Volume]Image to new[Cube|Array|Volume]Texture 2020-02-12 18:56:55 -04:00
Alex Szpakowski d24b9e9e6f Rename love.graphics.newCanvas to newRenderTarget 2020-02-11 19:32:00 -04:00
Alex Szpakowski aa636381d0 Fix MSAA texture creation logic 2020-02-09 12:46:52 -04:00
Alex Szpakowski 694bc9c5b7 rename love_Canvases to love_RenderTargets in shaders.
More misc. renaming
2020-02-09 12:11:19 -04:00
Alex Szpakowski 453322678c Rename internal uses of canvas to texture/render target 2020-02-08 20:40:10 -04:00
Alex Szpakowski 12c90b3dca Merge Image and Canvas GL backend classes into new common Texture class. 2020-02-07 20:29:21 -04:00
Alex Szpakowski 17f77407bb Replace internal C++ newImage and newCanvas methods with newTexture 2020-02-05 20:39:55 -04:00
Alex Szpakowski 813b1e0e69 Remove debug print 2020-02-05 18:03:34 -04:00
Alex Szpakowski ca84b6db48 More robust error handling for AMD Pinned Memory buffers (issue #1540)
Also print out any errors that are produced from that (for now).
2020-02-05 07:49:38 -04:00
Alex Szpakowski 0017f9c77d Remove a redundant internal Texture method 2020-02-04 22:15:18 -04:00
Alex Szpakowski 258129738f Remove graphics::Canvas and graphics::Image 2020-02-04 22:06:55 -04:00
Alex Szpakowski b71eaf73cc Replaced some references to Image and Canvas with Texture. 2020-02-04 20:52:57 -04:00
Alex Szpakowski c3b77e0a92 Remove wrap_Canvas and wrap_Image files 2020-02-04 20:09:46 -04:00
Alex Szpakowski 61a5f0c7e2 Move Canvas:renderTo to Texture:renderTo. 2020-02-04 20:05:31 -04:00