From: Alexis Laferrière Date: Sat, 16 Jan 2016 17:15:18 +0000 (-0500) Subject: lib/gamnit: document `offset` methods X-Git-Tag: v0.8~14^2~9 X-Git-Url: http://nitlanguage.org lib/gamnit: document `offset` methods Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/textures.nit b/lib/gamnit/textures.nit index 2e693d2..874fb5e 100644 --- a/lib/gamnit/textures.nit +++ b/lib/gamnit/textures.nit @@ -67,9 +67,16 @@ abstract class Texture return subtex end + # Offset of the left border on `root` from 0.0 to 1.0 fun offset_left: Float do return 0.0 + + # Offset of the top border on `root` from 0.0 to 1.0 fun offset_top: Float do return 0.0 + + # Offset of the right border on `root` from 0.0 to 1.0 fun offset_right: Float do return 1.0 + + # Offset of the bottom border on `root` from 0.0 to 1.0 fun offset_bottom: Float do return 1.0 end