Pārlūkot izejas kodu

rm obsolete flip argument to lovr.data.newImage;

bjorn 1 gadu atpakaļ
vecāks
revīzija
afe24af843
2 mainītis faili ar 2 papildinājumiem un 22 dzēšanām
  1. 0 12
      api/init.lua
  2. 2 10
      api/lovr/data/newImage.lua

+ 0 - 12
api/init.lua

@@ -3557,12 +3557,6 @@ return {
                   name = "filename",
                   type = "string",
                   description = "The filename of the image to load."
-                },
-                {
-                  name = "flip",
-                  type = "boolean",
-                  description = "Whether to vertically flip the image on load.  This should be true for normal textures, and false for textures that are going to be used in a cubemap.",
-                  default = "true"
                 }
               },
               returns = {
@@ -3631,12 +3625,6 @@ return {
                   name = "blob",
                   type = "Blob",
                   description = "The Blob containing image data to decode."
-                },
-                {
-                  name = "flip",
-                  type = "boolean",
-                  description = "Whether to vertically flip the image on load.  This should be true for normal textures, and false for textures that are going to be used in a cubemap.",
-                  default = "true"
                 }
               },
               returns = {

+ 2 - 10
api/lovr/data/newImage.lua

@@ -34,14 +34,6 @@ return {
     source = {
       type = 'Image',
       description = 'The Image to clone.'
-    },
-    flip = {
-      type = 'boolean',
-      default = 'true',
-      description = [[
-        Whether to vertically flip the image on load.  This should be true for normal textures, and
-        false for textures that are going to be used in a cubemap.
-      ]]
     }
   },
   returns = {
@@ -53,7 +45,7 @@ return {
   variants = {
     {
       description = 'Load image data from a file.',
-      arguments = { 'filename', 'flip' },
+      arguments = { 'filename' },
       returns = { 'image' }
     },
     {
@@ -68,7 +60,7 @@ return {
     },
     {
       description = 'Decode image data from a Blob.',
-      arguments = { 'blob', 'flip' },
+      arguments = { 'blob' },
       returns = { 'image' }
     }
   },