Browse Source

Buffer:isTemporary;

bjorn 3 years ago
parent
commit
5788d7f8d4
2 changed files with 37 additions and 0 deletions
  1. 22 0
      api/init.lua
  2. 15 0
      api/lovr/graphics/Buffer/isTemporary.lua

+ 22 - 0
api/init.lua

@@ -4683,6 +4683,28 @@ return {
                 "Buffer:getSize",
                 "Buffer:getLength"
               }
+            },
+            {
+              name = "isTemporary",
+              summary = "Check if the Buffer is temporary.",
+              description = "Returns whether the Buffer is temporary.",
+              key = "Buffer:isTemporary",
+              module = "lovr.graphics",
+              related = {
+                "lovr.graphics.buffer"
+              },
+              variants = {
+                {
+                  arguments = {},
+                  returns = {
+                    {
+                      name = "temporary",
+                      type = "boolean",
+                      description = "Whether the Buffer is temporary."
+                    }
+                  }
+                }
+              }
             }
           }
         },

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

@@ -0,0 +1,15 @@
+return {
+  summary = 'Check if the Buffer is temporary.',
+  description = 'Returns whether the Buffer is temporary.',
+  arguments = {},
+  returns = {
+    {
+      name = 'temporary',
+      type = 'boolean',
+      description = 'Whether the Buffer is temporary.'
+    }
+  },
+  related = {
+    'lovr.graphics.buffer'
+  }
+}