goo.image.luadoc 640 B

12345678910111213141516171819202122232425262728
  1. --[[ Draws an image. ]]
  2. module 'goo.image'
  3. --[[ Set the image.
  4. @param image:userdata the image, must be image type.
  5. ]]
  6. function goo.image:setImage( image )
  7. --[[ Get the image
  8. @return userdata: the image in image type.
  9. ]]
  10. function goo.image:getImage()
  11. --[[ Load the image from a file or imageData
  12. @param filename:string the filename of the image, or imageData
  13. ]]
  14. function goo.image:loadImage( filename )
  15. --[[ Set the rotation of the image.
  16. @param rotation:number rotation in radians.
  17. ]]
  18. function goo.image:setRotation( rotation )
  19. --[[ Get the rotation
  20. @return number: the rotation in radians.
  21. ]]
  22. function goo.image:getRotation()