lib/gamnit: document `offset` methods
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 16 Jan 2016 17:15:18 +0000 (12:15 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 16 Jan 2016 21:01:52 +0000 (16:01 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/textures.nit

index 2e693d2..874fb5e 100644 (file)
@@ -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