nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2938f40
)
lib/gamnit: improve doc of subtexture with a vital detail
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 20 Apr 2016 11:33:47 +0000
(07:33 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 20 May 2016 20:13:42 +0000
(16:13 -0400)
There was an ambiguity as to whether the method expected pixel offsets original
proportional values out of 1.0.
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
415aa90
..
bb5c976
100644
(file)
--- a/
lib/gamnit/textures.nit
+++ b/
lib/gamnit/textures.nit
@@
-41,7
+41,7
@@
abstract class Texture
# OpenGL handle to this texture
fun gl_texture: Int do return root.gl_texture
- # Prepare a subtexture from this texture
+ # Prepare a subtexture from this texture, from the given pixel offsets
fun subtexture(left, top, width, height: Numeric): GamnitSubtexture
do
# Setup the subtexture