Bladeren bron

Deprecation updates;

bjorn 1 jaar geleden
bovenliggende
commit
182045dff6

+ 31 - 3
api/init.lua

@@ -13257,7 +13257,20 @@ return {
               },
               variants = {
                 {
-                  arguments = {},
+                  arguments = {
+                    {
+                      name = "offset",
+                      type = "number",
+                      description = "A byte offset in the buffer to write to.",
+                      default = "0"
+                    },
+                    {
+                      name = "extent",
+                      type = "number",
+                      description = "The number of bytes to replace.  If nil, writes to the rest of the buffer.",
+                      default = "nil"
+                    }
+                  },
                   returns = {
                     {
                       name = "pointer",
@@ -13324,6 +13337,7 @@ return {
               description = "Returns whether the Buffer is temporary.",
               key = "Buffer:isTemporary",
               module = "lovr.graphics",
+              deprecated = true,
               related = {
                 "lovr.graphics.getBuffer"
               },
@@ -13354,7 +13368,20 @@ return {
               },
               variants = {
                 {
-                  arguments = {},
+                  arguments = {
+                    {
+                      name = "offset",
+                      type = "number",
+                      description = "A byte offset in the buffer to write to.",
+                      default = "0"
+                    },
+                    {
+                      name = "extent",
+                      type = "number",
+                      description = "The number of bytes to replace.  If nil, writes to the rest of the buffer.",
+                      default = "nil"
+                    }
+                  },
                   returns = {
                     {
                       name = "pointer",
@@ -23972,7 +23999,8 @@ return {
                   type = "boolean",
                   description = "Whether the animation was applied successfully to the Model.  If the Model was not compatible or animation data for the device was not available, this will be `false`."
                 }
-              }
+              },
+              deprecated = true
             }
           }
         },

+ 1 - 1
api/lovr/graphics/Buffer/getPointer.lua

@@ -27,7 +27,7 @@ return {
   },
   variants = {
     {
-      arguments = {},
+      arguments = { 'offset', 'extent' },
       returns = { 'pointer' }
     }
   },

+ 1 - 0
api/lovr/graphics/Buffer/isTemporary.lua

@@ -1,4 +1,5 @@
 return {
+  deprecated = true,
   tag = 'buffer-metadata',
   summary = 'Check if the Buffer is temporary.',
   description = 'Returns whether the Buffer is temporary.',

+ 1 - 1
api/lovr/graphics/Buffer/mapData.lua

@@ -26,7 +26,7 @@ return {
   },
   variants = {
     {
-      arguments = {},
+      arguments = { 'offset', 'extent' },
       returns = { 'pointer' }
     }
   },

+ 1 - 0
api/lovr/headset/animate.lua

@@ -34,6 +34,7 @@ return {
       returns = { 'success' }
     },
     {
+      deprecated = true,
       arguments = { 'device', 'model' },
       returns = { 'success' }
     }