nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12fb7a6
)
lib/gamnit: document `offset` methods
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 16 Jan 2016 17:15:18 +0000
(12:15 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/gamnit/textures.nit
b/lib/gamnit/textures.nit
index
2e693d2
..
874fb5e
100644
(file)
--- 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