2
0
Эх сурвалжийг харах

Fix Curve:init graphics link;

bjorn 2 жил өмнө
parent
commit
e2d58df5a8

+ 1 - 1
api/init.lua

@@ -19081,7 +19081,7 @@ return {
         {
           name = "Curve",
           summary = "A Bézier curve.",
-          description = "A Curve is an object that represents a Bézier curve in three dimensions.  Curves are defined by an arbitrary number of control points (note that the curve only passes through the first and last control point).\n\nOnce a Curve is created with `lovr.math.newCurve`, you can use `Curve:evaluate` to get a point on the curve or `Curve:render` to get a list of all of the points on the curve.  These points can be passed directly to `lovr.graphics.points` or `lovr.graphics.line` to render the curve.\n\nNote that for longer or more complicated curves (like in a drawing application) it can be easier to store the path as several Curve objects.",
+          description = "A Curve is an object that represents a Bézier curve in three dimensions.  Curves are defined by an arbitrary number of control points (note that the curve only passes through the first and last control point).\n\nOnce a Curve is created with `lovr.math.newCurve`, you can use `Curve:evaluate` to get a point on the curve or `Curve:render` to get a list of all of the points on the curve.  These points can be passed directly to `Pass:points` or `Pass:line` to render the curve.\n\nNote that for longer or more complicated curves (like in a drawing application) it can be easier to store the path as several Curve objects.",
           key = "Curve",
           module = "lovr.math",
           constructors = {

+ 1 - 1
api/lovr/math/Curve/init.lua

@@ -7,7 +7,7 @@ return {
 
     Once a Curve is created with `lovr.math.newCurve`, you can use `Curve:evaluate` to get a point
     on the curve or `Curve:render` to get a list of all of the points on the curve.  These points
-    can be passed directly to `lovr.graphics.points` or `lovr.graphics.line` to render the curve.
+    can be passed directly to `Pass:points` or `Pass:line` to render the curve.
 
     Note that for longer or more complicated curves (like in a drawing application) it can be easier
     to store the path as several Curve objects.