Commit Graph

1010 Commits

Author SHA1 Message Date
bjorn 66d0e42908 Refactor VertexFormat; 2018-01-26 19:11:40 -08:00
bjorn dc801d8590 luax_pushvertex; 2018-01-26 19:01:41 -08:00
bjorn ea7f3d48a2 Refactor MeshFormat; 2018-01-26 19:01:41 -08:00
crito ba85abaa0d remove webvrGetBoundsGeometry reference from webvr.c
getBoundsGeometry implementation was dropped with 11586e8
but not in HeadsetInterface.
2018-01-27 00:13:42 +01:00
Bjorn Swenson 1f3deae6ec
Merge pull request #32 from mcclure/reload-support-2
Restart-without-quit support: lovr.event.quit("restart")
2018-01-25 19:08:30 -08:00
mcc 8052896b33 Restart-without-quit support: lovr.event.quit("restart") and return-from-run() both support the string "restart" in place of an exit code. When this happens, the program reruns itself in a new, isolated environment. In Emscripten, no reboot occurs and the program only quits. 2018-01-25 21:32:16 -05:00
bjorn b549688c44 Add a bunch of Rasterizer functions; 2018-01-22 18:49:45 -08:00
bjorn 3cce5fd991 ModelData; 2018-01-22 18:24:39 -08:00
bjorn ed72de1109 Make sure objects retain their underlying data; 2018-01-22 09:13:03 -08:00
bjorn a2e0f592a3 Create Fonts from Rasterizers; 2018-01-22 08:46:09 -08:00
bjorn 99a302ff38 Rasterizer; 2018-01-22 08:40:47 -08:00
bjorn a22740084c Rename FontData to Rasterizer; 2018-01-22 08:28:33 -08:00
bjorn 89891811b7 Create Sources from AudioStreams; 2018-01-22 08:14:24 -08:00
bjorn e5a17a4160 Create Textures from TextureData; 2018-01-22 08:14:18 -08:00
bjorn 1b9f81b57f Fix refcounting in lovr.data; 2018-01-22 08:08:47 -08:00
bjorn f0cac8fa69 Add luax_totype; 2018-01-22 08:08:26 -08:00
bjorn 56625b4dc2 Organize api.h; 2018-01-21 14:20:06 -08:00
bjorn 0cad6271dd AudioStream; 2018-01-21 13:26:00 -08:00
bjorn fa630b6414 AudioStream bufferSize is configurable; 2018-01-21 13:10:16 -08:00
bjorn aa5f51acb3 AudioStream is refcounted; 2018-01-21 13:08:06 -08:00
bjorn 9cd47faf05 Rename SourceData to AudioStream; 2018-01-21 12:54:16 -08:00
bjorn 82ca82862d Source:getChannels -> Source:getChannelCount; 2018-01-21 12:23:49 -08:00
bjorn b7a21d1f90 Fix projection matrix for 3d canvases; 2018-01-20 21:44:44 -08:00
bjorn 1e97c716de TextureData; 2018-01-20 21:33:09 -08:00
bjorn a14f5734d5 Add lovr.data module; 2018-01-15 23:13:26 -08:00
bjorn 9ece4a3b09 Release font blob after telling freetype we're done with it; 2018-01-14 15:16:27 -08:00
bjorn 28512bd2ea rm unused ModelData function; 2018-01-14 13:56:54 -08:00
bjorn 83b85ec47d Fix alphabetization; 2018-01-14 13:35:57 -08:00
bjorn 255c001717 Simplify mipmaps; 2018-01-14 13:21:34 -08:00
bjorn 3d0e761198 Fix problem passing flags to lovr.graphics.newTexture; 2018-01-14 13:05:14 -08:00
bjorn f634e17e5c Avoid resetting clock after boot.lua;
Fixes an issue where the initial dt was negative.
2018-01-13 16:00:47 -08:00
bjorn 82cd9d0414 Fix Texture:setFilter for cubemap textures; 2018-01-12 20:25:41 -08:00
bjorn 8d49e05772 Don't cast floats to ints in Shader:send; 2018-01-09 20:55:14 -08:00
bjorn d67ec24884 Fix Joint:getType returning nil for DistanceJoints; 2018-01-09 19:42:09 -08:00
bjorn 7f73dfeb24 Pass arguments through to Canvas:renderTo callback; 2018-01-08 21:54:34 -08:00
bjorn f9e49f5afa Error if Canvas:renderTo does not receive a function; 2018-01-08 21:52:43 -08:00
bjorn 444abcb1c3 Improve lovr.graphics.newCanvas error messages;
Returns better error messages when width or height is not positive.
2018-01-08 21:22:42 -08:00
bjorn 511598f605 Fix lovr.headset.getDisplayDimensions when called in lovr.load; 2018-01-08 21:16:34 -08:00
bjorn e2c27fb74c Fix lovr.draw arguments; 2018-01-08 18:33:51 -08:00
bjorn 11586e8248 rm lovr.headset.getBoundsGeometry; 2018-01-06 15:49:19 -08:00
bjorn aef6345606 Prevent loading of conf.lua outside project directory; 2018-01-05 23:04:47 -08:00
bjorn f857f4e94d Average FPS over 90 ticks instead of 60; 2018-01-05 22:43:35 -08:00
bjorn 832a470c90 Make controller models more safe; 2018-01-05 21:09:32 -08:00
bjorn 2727544408 Copy strings in loader; 2018-01-04 18:49:14 -08:00
bjorn 881a515687 Fix model transform initialization; 2018-01-04 08:49:58 -08:00
bjorn 7b58012854 Flip sphere uvs; 2018-01-01 20:39:50 -08:00
bjorn 31f6401fdd Fix webvr; 2018-01-01 20:37:31 -08:00
bjorn 70ca4e3875 v0.9.1; 2017-12-31 20:26:42 -08:00
bjorn abee677d38 Give OpenVR canvas a stencil buffer; 2017-12-31 20:25:51 -08:00
bjorn de320be1cd Improve error messages in the filesystem loader;
Also fix a memory leak in lovr.filesystem.load.
2017-12-31 13:20:42 -08:00
bjorn aa4ceafbf2 Add headset type for Windows MR headsets; 2017-12-30 12:21:51 -08:00
bjorn 08cda7bad6 Fix glBindFramebuffer call; 2017-12-18 22:15:24 -08:00
bjorn 5b77d42fa0 Use proper number of MSAA samples for headset canvas; 2017-12-18 20:00:53 -08:00
bjorn 77d8b96cfd lovr.graphics.stencil; 2017-12-18 19:48:28 -08:00
bjorn 8acd7444af lovr.graphics.getStencilTest; lovr.graphics.setStencilTest; 2017-12-18 18:37:03 -08:00
bjorn 662572c4e0 Add boot.lua back; 2017-12-18 16:01:12 -08:00
bjorn f43272adc3 lovr.headset.getPose; Controller:getPose;
Remove lovr.headset.getEyePosition.  It is now an optional first
argument to the other lovr.headset functions.
2017-12-17 22:20:29 -08:00
bjorn 5401c2f3c6 Fix OpenVR render model loading; 2017-12-17 22:20:29 -08:00
bjorn 0028bbd51e Throw an error if a texture is too big; 2017-12-17 19:19:09 -08:00
bjorn 386ab78ae9 Throw an error if font texture overflows; 2017-12-17 19:13:04 -08:00
bjorn 5f38153cf1 Initialize animation track alphas properly; 2017-12-17 18:24:43 -08:00
bjorn 1d20e49829 Move api header; 2017-12-10 12:41:43 -08:00
bjorn 72aa7e858a Rename loaders to data; 2017-12-10 12:41:43 -08:00
bjorn 4a2cc56fef Move shaders into resources; 2017-12-10 12:41:43 -08:00
bjorn 2d2a4cf038 Rename data to resources; 2017-12-10 12:41:43 -08:00
bjorn c3fc7b61fd Fix crash with lovr.graphics.newMaterial; 2017-12-10 12:41:43 -08:00
bjorn 3b9db7fd42 Give OpenVR its depth buffer back; 2017-12-09 22:51:37 -08:00
bjorn 6f58b758e3 Fix texture coordinates; 2017-12-09 20:09:27 -08:00
bjorn 6df8dfe456 Canvas:getFormat; 2017-12-09 20:09:27 -08:00
bjorn ee36b47864 Depth/stencil buffers; More work on Canvas API; 2017-12-09 20:09:27 -08:00
bjorn 928ee06655 Floating point texture formats; 2017-12-09 20:09:27 -08:00
bjorn fa8af65073 Refactor texture formats; 2017-12-09 20:09:27 -08:00
bjorn c6a395fa21 Switch to table variant of newCanvas API; 2017-12-09 20:09:27 -08:00
bjorn 2243fe10ae Flip canvas perspective projection; 2017-12-09 20:09:27 -08:00
bjorn 0eebea28a9 Canvas:getMSAA; 2017-12-09 20:09:27 -08:00
bjorn 6577133635 Canvases can be used anywhere Textures are; 2017-12-09 20:09:27 -08:00
bjorn d261e4b00d Start Canvas objects; 2017-12-09 20:09:27 -08:00
bjorn 8eec247adb lovr.graphics.getStats; 2017-12-09 20:07:42 -08:00
bjorn 650f100b15 Fix bug where Shader:send uses incorrect number of values; 2017-12-08 13:04:43 -08:00
bjorn c6b7d9729d rm lovrGraphicsGetWindow; 2017-12-03 15:23:38 -08:00
bjorn b9b1238968 v0.9.0; 2017-12-01 20:11:34 -08:00
bjorn da0afb487c Small fixes for WebVR; 2017-12-01 19:59:55 -08:00
bjorn 8e686bba92 Only enable mouselook on press;
For better WebVR experience.
2017-12-01 19:36:05 -08:00
bjorn a698edc475 Bugfixes; 2017-11-30 21:17:54 -08:00
bjorn b48ceb7526 Fix bug with model IO; 2017-11-29 19:06:04 -08:00
bjorn 2869bac3cd Fix animation alpha; 2017-11-29 00:00:13 -08:00
bjorn 3756c06ec7 More flexible shorthands for texture and material args; 2017-11-28 20:42:36 -08:00
bjorn 17565ab201 Fix seeking animations to negative values; 2017-11-28 16:52:01 -08:00
bjorn c51731f869 Fix animations with negative speeds; 2017-11-28 16:50:43 -08:00
bjorn 251132d106 Fix bug with Animator:reset; 2017-11-28 14:38:47 -08:00
bjorn 2a43269222 Add OVR_multiview extension; 2017-11-27 20:53:46 -08:00
bjorn 097a88302e Add lines and linestrip MeshDrawModes; 2017-11-25 19:49:22 -08:00
bjorn ddd905627b Mesh:drawInstanced; Model:drawInstanced;
No attribute divisors yet.
2017-11-25 19:45:44 -08:00
bjorn cb2265e547 Remove material from graphics state;
It is now local state to models and meshes and can be passed as
an optional first argument to most primitives.
2017-11-25 19:02:28 -08:00
bjorn 093ef37bf3 Gamma correct colors correctly; 2017-11-25 17:57:59 -08:00
bjorn 7c64bac1c6 Fix windows path normalizing for referenced textures; 2017-11-25 13:42:55 -08:00
bjorn a9c53372ad Ensure animator is NULL on model creation; 2017-11-25 13:30:02 -08:00
bjorn c6d29f5de3 Add the ability to select headset drivers at runtime;
Messy.
2017-11-25 13:02:09 -08:00
bjorn bb90c8d378 Reduce max bones per mesh to 48; 2017-11-25 12:29:40 -08:00
bjorn f63c3c9261 Formatting; 2017-11-25 12:14:00 -08:00