bjorn 4 years ago
parent
commit
87fdcc8853

File diff suppressed because it is too large
+ 1 - 1
api/init.lua


+ 1 - 2
api/lovr/graphics/newTexture.lua

@@ -29,8 +29,7 @@ return {
     },
     images = {
       type = 'table',
-      description = [[
-      ]]
+      description = 'A table of image filenames to load.'
     },
     flags = {
       type = 'table',

+ 2 - 0
api/lovr/headset/getSkeleton.lua

@@ -158,6 +158,8 @@ return {
         </tr>
       </tbody>
     </table>
+
+    ![Hand Skeleton](https://lovr.org/static/img/hands.png)
   ]],
   example = [[
     function lovr.draw()

+ 19 - 2
api/lovr/headset/newModel.lua

@@ -15,9 +15,23 @@ return {
       name = 'model',
       type = 'Model',
       description = 'The new Model, or `nil` if a model could not be loaded.'
+    },
+    {
+      name = 'options',
+      type = 'table',
+      default = '{}',
+      description = 'Options for loading the model.',
+      table = {
+        {
+          name = 'animated',
+          type = 'boolean',
+          default = 'false',
+          description = 'Whether an animatable model should be loaded, for use with `lovr.headset.animate`.'
+        }
+      }
     }
   },
-  notes = 'Generally, this is only supported on the `openvr` driver right now.',
+  notes = 'This is only supported on the `openvr` and `vrapi` drivers right now.',
   example = [[
     local models = {}
 
@@ -31,5 +45,8 @@ return {
         end
       end
     end
-  ]]
+  ]],
+  related = {
+    'lovr.headset.animate'
+  }
 }

Some files were not shown because too many files changed in this diff