From: Alexis Laferrière Date: Sat, 12 Sep 2015 14:17:03 +0000 (-0400) Subject: lib/glesv2: update GLTextureTarget to the new contructor-less style X-Git-Tag: v0.7.8~28^2~4 X-Git-Url: http://nitlanguage.org lib/glesv2: update GLTextureTarget to the new contructor-less style Signed-off-by: Alexis Laferrière --- diff --git a/lib/glesv2/glesv2.nit b/lib/glesv2/glesv2.nit index 9541fe1..4e3c3ee 100644 --- a/lib/glesv2/glesv2.nit +++ b/lib/glesv2/glesv2.nit @@ -459,15 +459,19 @@ extern class GLTextureWrap end # Target texture -# -# Used by: `tex_parameter_*` extern class GLTextureTarget super GLEnum - - new flat `{ return GL_TEXTURE_2D; `} - new cube_map `{ return GL_TEXTURE_CUBE_MAP; `} end +# Two-dimensional texture +fun gl_TEXTURE_2D: GLTextureTarget `{ return GL_TEXTURE_2D; `} + +# Cube map texture +fun gl_TEXTURE_CUBE_MAP: GLTextureTarget `{ return GL_TEXTURE_CUBE_MAP; `} + +# TODO GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, +# GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z + # A server-side capability class GLCap