BezierPathTween.lua 472 B

123456789101112131415161718192021222324252627
  1. require "Polycode/Tween"
  2. class "BezierPathTween" (Tween)
  3. function BezierPathTween:BezierPathTween(...)
  4. for k,v in pairs(arg) do
  5. if type(v) == "table" then
  6. if v.__ptr ~= nil then
  7. arg[k] = v.__ptr
  8. end
  9. end
  10. end
  11. if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
  12. self.__ptr = Polycore.BezierPathTween(unpack(arg))
  13. end
  14. end
  15. function BezierPathTween:updateCustomTween()
  16. local retVal = Polycore.BezierPathTween_updateCustomTween(self.__ptr)
  17. end