Browse Source

Rename PolygonWinding to Winding;

bjorn 7 years ago
parent
commit
3cb2037926
4 changed files with 22 additions and 28 deletions
  1. 20 26
      api/init.lua
  2. 0 0
      api/lovr/graphics/Winding.lua
  3. 1 1
      api/lovr/graphics/getWinding.lua
  4. 1 1
      api/lovr/graphics/setWinding.lua

+ 20 - 26
api/init.lua

@@ -280,13 +280,7 @@ return {
       },
       variants = {
         {
-          arguments = {
-            {
-              name = "eye",
-              type = "HeadsetEye",
-              description = "The eye currently being rendered to."
-            }
-          },
+          arguments = {},
           returns = {}
         }
       }
@@ -5014,23 +5008,6 @@ return {
             }
           }
         },
-        {
-          name = "PolygonWinding",
-          summary = "Different winding directions.",
-          description = "Whether the points on triangles are specified in a clockwise or counterclockwise order.",
-          key = "PolygonWinding",
-          module = "graphics",
-          values = {
-            {
-              name = "clockwise",
-              description = "Triangle vertices are specified in a clockwise order."
-            },
-            {
-              name = "counterclockwise",
-              description = "Triangle vertices are specified in a counterclockwise order."
-            }
-          }
-        },
         {
           name = "StencilAction",
           summary = "Different stencil operations available.",
@@ -5143,6 +5120,23 @@ return {
             "lovr.graphics.print"
           }
         },
+        {
+          name = "Winding",
+          summary = "Different winding directions.",
+          description = "Whether the points on triangles are specified in a clockwise or counterclockwise order.",
+          key = "Winding",
+          module = "graphics",
+          values = {
+            {
+              name = "clockwise",
+              description = "Triangle vertices are specified in a clockwise order."
+            },
+            {
+              name = "counterclockwise",
+              description = "Triangle vertices are specified in a counterclockwise order."
+            }
+          }
+        },
         {
           name = "WrapMode",
           summary = "How to wrap Textures.",
@@ -6815,7 +6809,7 @@ return {
               returns = {
                 {
                   name = "winding",
-                  type = "PolygonWinding",
+                  type = "Winding",
                   description = "The current winding direction."
                 }
               }
@@ -8494,7 +8488,7 @@ return {
               arguments = {
                 {
                   name = "winding",
-                  type = "PolygonWinding",
+                  type = "Winding",
                   description = "The new winding direction."
                 }
               },

+ 0 - 0
api/lovr/graphics/PolygonWinding.lua → api/lovr/graphics/Winding.lua


+ 1 - 1
api/lovr/graphics/getWinding.lua

@@ -10,7 +10,7 @@ return {
   returns = {
     {
       name = 'winding',
-      type = 'PolygonWinding',
+      type = 'Winding',
       description = 'The current winding direction.'
     }
   },

+ 1 - 1
api/lovr/graphics/setWinding.lua

@@ -9,7 +9,7 @@ return {
   arguments = {
     {
       name = 'winding',
-      type = 'PolygonWinding',
+      type = 'Winding',
       description = 'The new winding direction.'
     }
   },