From: Alexis Laferrière Date: Wed, 20 Apr 2016 11:33:47 +0000 (-0400) Subject: lib/gamnit: improve doc of subtexture with a vital detail X-Git-Url: http://nitlanguage.org lib/gamnit: improve doc of subtexture with a vital detail 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 --- diff --git a/lib/gamnit/textures.nit b/lib/gamnit/textures.nit index 415aa90..bb5c976 100644 --- 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