1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00
Commit graph

764 commits

Author SHA1 Message Date
bjorn e705e898b2 0.7.1; 2017-06-23 19:43:14 -07:00
bjorn e485f7d628 Fix glad in windows; 2017-06-23 19:42:58 -07:00
bjorn e5a311af09 Add glad for windows; 2017-06-23 19:35:49 -07:00
bjorn e897c2512a Fix Collider:applyTorque; 2017-06-23 17:45:27 -07:00
bjorn 83118a5012 lovr.graphics.sphere; 2017-06-21 23:10:45 -07:00
bjorn 68538c7013 Cleanup; 2017-06-21 19:44:02 -07:00
bjorn dd1db4c86f lovr.graphics.box; Better non-uniform scale; 2017-06-21 19:42:34 -07:00
bjorn a13c793769 Model:getAABB; 2017-06-21 18:53:11 -07:00
bjorn a6ae2bdf6b Fix Collider:getAABB; 2017-06-21 18:45:46 -07:00
bjorn 3744706ade Fix zero scale; 2017-06-20 22:56:11 -07:00
bjorn dfd6c91dec lovr.graphics.cylinder; 2017-06-20 20:54:22 -07:00
bjorn ca95fa0df0 Handle texture formats better; 2017-06-18 17:28:15 -07:00
bjorn 18fa9f7d76 Remove doppler effect; 2017-06-18 16:20:30 -07:00
bjorn 52b203240d Fix mapped buffers for WebGL 2; 2017-06-18 16:19:26 -07:00
bjorn 8beac66db0 OpenGL ES3; Remove glad;
Stop using OpenGL extensions and drop support for OpenGL ES2,
WebGL 1, and OpenGL 2.  Remove glad.
2017-06-18 15:55:01 -07:00
bjornbytes 5f3ce18fcd Fix mesh mapping; 2017-06-13 22:59:27 -07:00
bjornbytes 6c25b9bd4f Fix Mesh:getVertexMap; 2017-06-13 21:28:15 -07:00
bjornbytes 9f097e64e2 Add lovrNormalMatrix; 2017-06-13 20:04:51 -07:00
bjorn 4c16647ff0 0.7.0; 2017-06-11 16:57:41 -07:00
bjorn b84ef967e6 Fix integer attribute test; 2017-06-11 16:48:46 -07:00
bjorn 9428f9628e Fix dirtied sittingToStanding matrix; 2017-06-10 23:18:32 -07:00
bjorn 074e55dc8b Improve error message for main.lua syntax errors; 2017-06-10 17:43:54 -07:00
bjorn 8c0e4bd416 Fix conf error; 2017-06-10 17:30:36 -07:00
bjorn 613b1ea67f Refactor GL extension code; 2017-06-10 16:25:46 -07:00
bjorn 265a81c411 Add window title; Improve initial error handling; 2017-06-10 15:34:35 -07:00
bjorn 1cc62a9b6d DistanceJoint; 2017-06-10 15:13:19 -07:00
bjorn 24a980446a Add extra room to transform stack;
Currently the transform stack doesn't take into account the fact that internal functions use
transforms.  Performing error checking for the transform stack in the internal functions is kind of
difficult (right now we just segfault), so it's easier to just reserve a few of the transforms for
internal use.
2017-06-10 14:44:04 -07:00
bjorn 827c92cc38 Collider constructor accepts position; 2017-06-10 14:17:59 -07:00
bjorn 011b669892 Correct error check in Mesh:setVertexMap; 2017-06-10 14:09:33 -07:00
bjorn 616e4b9488 Clean up Mesh IBO properly; 2017-06-10 14:06:55 -07:00
bjorn bf555d558d Use default shader when drawing mirror texture; 2017-06-10 14:05:20 -07:00
bjorn b305b3b109 Put World headers back; 2017-06-10 14:05:02 -07:00
bjorn b0c86c1903 Reorder collider functions; 2017-06-10 04:51:09 -07:00
bjorn 1061134800 Improve error messages; 2017-06-02 01:31:14 -07:00
bjorn 10ddc06c13 No resizable window; 2017-06-01 23:52:37 -07:00
bjorn 338a544c78 Correct indices in shape list and joint list; 2017-05-29 10:42:07 -07:00
bjorn 769e7514c8 Remove single precision check; 2017-05-25 15:55:16 -07:00
bjorn c198369c95 Joint limits; 2017-05-25 15:20:55 -07:00
bjorn 39400776dc Semantic tags; 2017-05-25 15:01:40 -07:00
bjorn 00142b7a74 rm mask and category declarations; 2017-05-25 13:41:00 -07:00
bjorn 3b4996b7d0 Collider:setFriction; Collider:setRestitution; 2017-05-25 00:56:56 -07:00
bjorn a32eb38026 SliderJoint; 2017-05-25 00:48:02 -07:00
bjorn c828eaa338 HingeJoint; 2017-05-24 23:51:27 -07:00
bjorn 507ab7f4bb BallJoint:getAnchors; BallJoint:setAnchor; 2017-05-24 23:47:16 -07:00
bjorn 73e3282c47 rm Shape category and mask; 2017-05-24 20:06:06 -07:00
bjorn 6bfea99be6 Collider:getAABB; 2017-05-24 18:10:39 -07:00
bjorn 876a8406b1 Shape:getAABB; 2017-05-24 17:47:59 -07:00
bjorn f3df7aa114 World:raycast; 2017-05-24 17:40:32 -07:00
bjorn 07ede6b2dc Custom friction and resitution; 2017-05-24 17:40:32 -07:00
bjorn f1a74c34c3 Joints;
Also no expressions in luax_pushtype;
2017-05-24 17:40:32 -07:00
bjorn f3a4ce3931 Collider:getShapeList; 2017-05-19 22:51:16 -06:00
bjorn 0fb1bd77d8 Shape:destroy; 2017-05-19 22:24:23 -06:00
bjorn 6ef9c6e475 Collider:destroy; 2017-05-19 22:14:20 -06:00
bjorn 5640b1d048 Organization; World:destroy; 2017-05-19 22:11:49 -06:00
bjorn 1a404c087f Collider:getLocalCenter; 2017-05-19 21:51:43 -06:00
bjorn 1829a65898 Organization; Collider:isGravityIgnored; Collider:setGravityIgnored; 2017-05-19 21:48:59 -06:00
bjorn 2c89aa4663 s/Body/Collider; 2017-05-19 20:11:58 -06:00
bjorn 661e9188c7 Custom collision handling; 2017-05-19 15:04:34 -06:00
bjorn fcc4780f14 Return nil for memory allocation errors; 2017-05-17 15:45:24 -06:00
bjorn ef89de2b5f Cleanup; 2017-05-17 13:10:37 -06:00
bjorn eddc7af482 Fix require leak; 2017-05-17 00:17:13 -06:00
bjorn dfece82c89 Fix undefined behavior with event polling; 2017-05-17 00:03:42 -06:00
bjorn 08a5259aec Minor lovr.graphics.clear optimization; 2017-05-16 23:43:47 -06:00
bjorn 7c170d9bf2 Collision WIP; 2017-05-16 23:12:10 -06:00
bjorn 9e907d6dec Orientation fixes; 2017-05-16 23:11:53 -06:00
bjorn 9d6e5252a5 lovr.timer.getAverageDelta; 2017-05-16 20:25:29 -06:00
bjorn 29f4878dbc Body:getMassData; Body:setMassData; 2017-05-16 19:13:38 -06:00
bjorn e8686ffaea Body:getMass; Body:setMass; 2017-05-16 18:41:47 -06:00
bjorn e18f3e3f9d Shape:computeMass;
I think
2017-05-16 18:25:08 -06:00
bjorn bcbe6c47d4 CylinderShape; 2017-05-16 15:56:20 -06:00
bjorn 6a166f7102 CapsuleShape; 2017-05-16 15:52:41 -06:00
bjorn e79c45ffdf BoxShape; 2017-05-16 15:52:09 -06:00
bjorn 995e8a2ea8 SphereShape; 2017-05-16 15:21:10 -06:00
bjorn 09db32f6b4 Shape:getMask; Shape:setMask; 2017-05-16 14:26:38 -06:00
bjorn 81dfba071c Shape:getCategory; Shape:setCategory; 2017-05-16 14:26:09 -06:00
bjorn 73ec387545 Shape:getOrientation; Shape:setOrientation; 2017-05-16 12:48:01 -06:00
bjorn 327022461e Shape:getPosition; Shape:setPosition; 2017-05-16 12:46:15 -06:00
bjorn a70edfe2a5 Shape:getUserData; Shape:setUserData; 2017-05-16 12:33:55 -06:00
bjorn e93bfb30ad Shape:isEnabled; Shape:setEnabled; 2017-05-16 12:29:18 -06:00
bjorn bca3335da8 Cleanup; 2017-05-16 12:24:49 -06:00
bjorn c7515a1f7e Shape:getBody; Shape:setBody; 2017-05-16 12:23:13 -06:00
bjorn 43ac25a61d Shape; 2017-05-16 12:17:01 -06:00
bjorn 4ac72a54d6 luax_extendtype; luax_checktypeof; 2017-05-16 11:38:49 -06:00
bjorn 1115929583 Body:getWorld; 2017-05-16 00:37:14 -06:00
bjorn 835f0da058 Body:getUserData; Body:setUserData; 2017-05-16 00:09:44 -06:00
bjorn 048b62324f Body:isAwake; Body:setAwake; 2017-05-15 23:42:09 -06:00
bjorn ded5602846 Body:isSleepingAllowed; Body:setSleepingAllowed; 2017-05-15 23:40:30 -06:00
bjorn 0b6788dfcb Body:getLocalVector; Body:getWorldVector; 2017-05-15 23:30:26 -06:00
bjorn 35bab33e54 Body:getLinearVelocityFromLocalPoint; Body:getLinearVelocityFromWorldPoint; 2017-05-15 23:27:33 -06:00
bjorn b31970d85d Body:getLocalPoint; Body:getWorldPoint; 2017-05-15 23:22:25 -06:00
bjorn f672fe77cd Body:isKinematic; Body:setKinematic; 2017-05-15 23:15:50 -06:00
bjorn 8a0f37a0ae Body:applyForce; Body:applyTorque; 2017-05-15 23:15:22 -06:00
bjorn 18b9c8cdae Body:getAngularDamping; Body:setAngularDamping; 2017-05-15 23:14:46 -06:00
bjorn 1a4193831c Body:getLinearDamping; Body:setLinearDamping; 2017-05-15 23:14:07 -06:00
bjorn d29e190695 Body:getAngularVelocity; Body:setAngularVelocity; 2017-05-15 23:13:19 -06:00
bjorn 891db00bc9 Body:getLinearVelocity; Body:setLinearVelocity; 2017-05-15 23:11:50 -06:00
bjorn 798b09eb0d Body:getOrientation; Body:setOrientation; 2017-05-15 23:10:56 -06:00
bjorn eca490adfd Body:getPosition; Body:setPosition; 2017-05-15 23:10:17 -06:00
bjorn f4d4664318 Body; 2017-05-15 23:09:32 -06:00
bjorn c06a13f124 World:isSleepingAllowed; World:setSleepingAllowed; 2017-05-15 23:08:27 -06:00
bjorn ca7b93e150 World:getAngularDamping; World:setAngularDamping; 2017-05-15 23:07:54 -06:00
bjorn b840fb0a44 World:getLinearDamping; World:setLinearDamping; 2017-05-15 23:05:48 -06:00
bjorn 053ccb18bc World:update; 2017-05-15 23:04:05 -06:00
bjorn 3c8f4bd63b World:getGravity; World:setGravity; 2017-05-15 23:03:01 -06:00
bjorn 70bc90154b World; 2017-05-15 23:02:08 -06:00
bjorn 7597e71ff3 lovr.physics; 2017-05-15 22:59:53 -06:00
bjorn fde1124529 0.6.0; 2017-05-06 22:07:11 -07:00
bjorn db4b8bfbc5 Improve WebVR audio support; 2017-05-06 16:27:16 -07:00
bjorn 78e58de624 Fix potential crash on equirectangular skyboxes; 2017-05-06 16:27:06 -07:00
bjorn 7b22a8fac3 Remove guard against null sittingToStanding matrix; 2017-05-06 16:26:52 -07:00
bjorn a2400e9876 WebVR fixes; 2017-04-29 13:33:59 -07:00
bjorn 331c5efa49 Fix initial write directory set on windows; 2017-04-28 23:58:26 -07:00
bjorn f9e2b1441e Support polyfill; 2017-04-23 16:02:08 -07:00
bjorn f81209fd86 WebVR fixes; 2017-04-22 23:21:29 -07:00
bjorn 4399a2feb8 rm bounds visibility functions;
Minor WebVR fixes.
2017-04-22 22:53:03 -07:00
bjorn c1afd6ca33 WebVR Controllers; 2017-04-22 18:20:12 -07:00
bjorn c9be126b6b Small fixes; 2017-04-22 17:02:47 -07:00
bjorn 95fb96ec2c Controller experiments; 2017-04-22 16:59:54 -07:00
bjorn 37479be4b0 Fix rendering coordinate system; 2017-04-22 10:50:12 -07:00
bjorn 520227aa87 Fix meshes; 2017-04-22 10:34:44 -07:00
bjorn 6acebc221e Fix mesh attributes; 2017-04-22 00:12:32 -07:00
bjorn 255dc5a43c Fix coordinate system; 2017-04-21 23:06:10 -07:00
bjorn 7408a5e507 lovr.getOS for web; 2017-04-20 21:23:23 -07:00
bjorn 4537e17894 Fix typo; 2017-04-20 21:20:43 -07:00
bjorn 6e41c211d2 Unrefing; 2017-04-20 21:17:25 -07:00
bjorn 068784ef73 Add more to headset API; 2017-04-20 20:46:35 -07:00
bjorn 872ceb365d WIP; 2017-04-19 21:44:35 -07:00
bjorn 0f1acae42a WIP; 2017-04-16 16:56:49 -07:00
bjorn 5fa820215e Windows fix; 2017-04-14 01:00:07 -07:00
bjorn 3e58ce4e55 JSON; 2017-04-13 23:11:03 -07:00
bjorn 9eb4d7b393 Move all window code into graphics module; 2017-04-12 19:48:47 -07:00
bjorn 58f00a0b4c Oh noooo; 2017-04-12 19:48:47 -07:00
bjorn 25e6f3ce4e Fix Mesh unmapping; 2017-04-09 13:40:20 -07:00
bjorn 30647c97c5 0.5.0; 2017-04-03 09:40:37 -07:00
bjorn 6695be5eb8 Add missing bindings for lovr.filesystem.createDirectory; 2017-04-02 15:10:46 -07:00
bjorn 0d552a0f0c Draw headset mirror with white color; 2017-04-02 11:14:25 -07:00
bjorn 887f915001 Update logo; 2017-04-02 06:30:04 -07:00
bjorn 99dac3c848 Update logo; 2017-04-02 06:28:02 -07:00
bjorn 7f687f9732 No game screen; 2017-04-02 05:55:21 -07:00
bjorn 66bb9063f5 Add Blobs; 2017-04-01 16:50:10 -07:00
bjorn 3977db7249 Don't mess with depth test when rendering fonts; 2017-04-01 15:33:32 -07:00
bjorn a04e5013ad lovr.graphics.getSystemLimits; 2017-03-31 04:22:18 -07:00
bjorn 49a63bb084 Antialiasing;
Why not.
2017-03-31 03:57:04 -07:00
bjorn dcadbe37ce Fix glad on windows; Remove GLEW; 2017-03-31 03:20:53 -07:00
bjorn 18ffd4e53b glad; 2017-03-31 03:06:15 -07:00
bjorn 9d89ea5634 Allow custom fullscreen shaders; 2017-03-30 18:56:51 -07:00
bjorn fbc9805ab1 Allow custom skybox shaders; 2017-03-30 18:54:39 -07:00
bjorn 847a01b76f Fix skyboxes; 2017-03-30 18:48:03 -07:00
bjorn 3489426af5 Improve error screen more; 2017-03-30 17:22:06 -07:00
bjorn 61dd12df7d Improve error message formatting; 2017-03-29 11:25:48 -07:00
bjorn 6cc5a036e8 Fix Font:getWidth; 2017-03-25 18:41:25 -07:00
bjorn 2ae10967c4 Error in setVertices when overflowing Mesh size; 2017-03-23 17:49:57 -07:00
bjorn 7077d89a22 Font metrics; 2017-03-16 01:12:32 -07:00
bjorn 0b57b48702 Font pixel densities; 2017-03-15 20:51:16 -07:00
bjorn 390220f945 Font alignment; 2017-03-15 20:46:01 -07:00
bjorn a6cb4ee53f Alphabetize some enums; 2017-03-14 21:38:03 -07:00
bjorn 46b068c2fe Fix crash on absent command line argument; 2017-03-14 02:34:05 -07:00
bjorn 22526552dc Use correct texture for fonts; 2017-03-14 02:32:01 -07:00
bjorn c4f6df11e8 lovr.graphics.reset on error screen; 2017-03-12 19:23:26 -07:00
bjorn 37c2a11172 Fix panorama Skyboxes I promise; 2017-03-12 17:31:06 -07:00
bjorn 5bd364f65f Fix skybox math; 2017-03-12 17:13:50 -07:00
bjorn a4257378f0 Panorama Skybox fixes; 2017-03-12 16:57:27 -07:00
bjorn 4feeb4d4ab Equirectangular Skybox rough draft; 2017-03-12 16:45:50 -07:00
bjorn ac7a97fe77 Minor OpenVR render model cleanup; 2017-03-12 15:10:07 -07:00
bjorn 4c3bca841b ModelData doesn't need ref; 2017-03-12 15:04:39 -07:00
bjorn 062086991e Blend modes; 2017-03-12 04:03:36 -07:00
bjorn c6b635a2ec rm lovr.graphics.setProjection; 2017-03-11 21:19:26 -08:00
bjorn f3dfbe518a Fix switch scope; 2017-03-11 21:10:13 -08:00
bjorn 49a0ba4d1c lovr.headset.isMirrored; lovr.headset.setMirrored;
Also add conf.lua field to configure initial mirroring state.
2017-03-11 19:12:03 -08:00
bjorn 0c6da83332 lovr.focus;
This may not work in all cases involving e.g. overlays.
2017-03-11 19:01:01 -08:00
bjorn f9f0773b92 lovr.controllerpressed; lovr.controllerreleased; 2017-03-11 18:46:07 -08:00
bjorn 94a5dab7b5 Meshes use mapped buffers; 2017-03-11 17:27:18 -08:00
bjorn b417df1de9 Improve Mesh error message; 2017-03-11 15:26:43 -08:00
bjorn d1a8a5b156 Make Mesh attribute binding more intelligent; 2017-03-11 15:15:00 -08:00
bjorn 7648bffda7 Mesh:isAttributeEnabled; Mesh:setAttributeEnabled; 2017-03-11 14:47:13 -08:00
bjorn faad61614f Change Mesh isRangeEnabled to int; 2017-03-11 14:30:39 -08:00
bjorn 1abbdc5779 Missed some instances of buffer; 2017-03-11 14:28:44 -08:00
bjorn a2e1fd8972 Rename Buffer to Mesh; 2017-03-11 14:13:49 -08:00
bjorn 3da4d4def9 Add lovr.getOS; 2017-03-11 13:51:15 -08:00
bjorn ad1706f2ba Rename vive to openvr; 2017-03-11 03:31:04 -08:00
bjorn fce7746b16 Simplify api structure; 2017-03-11 03:08:07 -08:00
bjorn fa74254e64 Rename lovr to api; 2017-03-11 02:25:39 -08:00
bjorn b84f72f17e Rename vendor to lib; 2017-03-11 02:19:33 -08:00
bjorn 65338c8312 Print error when write directory fails; 2017-03-11 01:58:11 -08:00
bjorn 331f273e9b Use platform specific directory separators; 2017-03-11 01:47:30 -08:00
bjorn 4c78898aec Fix lovr.filesystem.getAppdataDirectory; 2017-03-11 01:45:33 -08:00
bjorn 40cf56f17a Add missing filesystem API functions; 2017-03-11 01:44:24 -08:00
bjorn 4df4069915 Add more filesystem functionality; 2017-03-11 01:37:00 -08:00
bjorn dfe1242332 pcall errhand; 2017-03-08 13:04:49 -08:00
bjorn b3009955f3 Fix texture resets again; 2017-03-04 00:18:59 -08:00
bjorn f7d2470272 Fix syntax issue, woops; 2017-03-01 20:19:37 -08:00
bjorn 0089ae0972 Optional eye for getEyePosition; 2017-03-01 20:18:49 -08:00
bjorn b38204287c lovr.filesystem.load; 2017-03-01 20:08:13 -08:00
bjorn c52f5e7318 Relative sources and volume limiting; 2017-02-28 20:03:47 -08:00
bjorn a932c4fec5 Fix Controller model freeing; 2017-02-26 23:52:40 -08:00
bjorn 2368f725a1 Fix OpenVR controller models; 2017-02-26 18:49:40 -08:00
bjorn 97ba379bd3 More Controller fixes; 2017-02-26 18:37:07 -08:00
bjorn f58e58d172 Improve headset safety; 2017-02-26 16:54:55 -08:00
bjorn 94af335225 Fix OpenVR texture reset yet again; 2017-02-26 16:33:20 -08:00
bjorn 2cc360db11 Fix stack adjustment in pushtype; 2017-02-26 14:49:42 -08:00