lib/gamnit: improve doc of subtexture with a vital detail
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 20 Apr 2016 11:33:47 +0000 (07:33 -0400)
committerAlexis 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

index 415aa90..bb5c976 100644 (file)
@@ -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