Browse Source

Fix math object clash;

bjorn 6 years ago
parent
commit
fcff30bdc8
5 changed files with 476 additions and 658 deletions
  1. 472 654
      api/init.lua
  2. 1 1
      api/lovr/math/mat4.lua
  3. 1 1
      api/lovr/math/quat.lua
  4. 1 1
      api/lovr/math/vec3.lua
  5. 1 1
      api/main.lua

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


+ 1 - 1
api/lovr/math/mat4.lua

@@ -1,5 +1,5 @@
 return {
-  summary = 'Create a new `mat4`.',
+  summary = 'Create a new mat4.',
   description = [[
     Creates a new `mat4`.
 

+ 1 - 1
api/lovr/math/quat.lua

@@ -1,5 +1,5 @@
 return {
-  summary = 'Create a new `quat`.',
+  summary = 'Create a new quat.',
   description = [[
     Creates a new `quat`.  Have a look at `quat:set` for more information about how all these
     variants can be used.

+ 1 - 1
api/lovr/math/vec3.lua

@@ -1,5 +1,5 @@
 return {
-  summary = 'Create a new `vec3`.',
+  summary = 'Create a new vec3.',
   description = [[
     Creates a new `vec3`.
 

+ 1 - 1
api/main.lua

@@ -159,7 +159,7 @@ local function processFunction(path, parent)
 end
 
 local function processObject(path, parent)
-  local object = require(path)
+  local object = require(path .. '.init')
 
   object.key = path:match('[^/]+$')
   object.name = object.key

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