ScreenLine.lua 464 B

12345678910111213141516171819202122
  1. require "Polycode/ScreenEntity"
  2. class "ScreenLine" (ScreenEntity)
  3. function ScreenLine:ScreenLine(start, _end)
  4. if self.__ptr == nil then
  5. self.__ptr = Polycore.ScreenLine(start, _end)
  6. end
  7. end
  8. function ScreenLine:Update()
  9. return Polycore.ScreenLine_Update(self.__ptr)
  10. end
  11. function ScreenLine:Render()
  12. return Polycore.ScreenLine_Render(self.__ptr)
  13. end
  14. function ScreenLine:setLineWidth(width)
  15. return Polycore.ScreenLine_setLineWidth(self.__ptr, width)
  16. end