From c27eea7a15bb393f5ebc4a0c6c978091d8ec8255 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Fri, 17 Mar 2017 14:01:03 +0800 Subject: [PATCH] Update API doc for CCTexture2D --- cocos2d/core/textures/CCTexture2D.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cocos2d/core/textures/CCTexture2D.js b/cocos2d/core/textures/CCTexture2D.js index 21c3d597dc..2722ad1823 100644 --- a/cocos2d/core/textures/CCTexture2D.js +++ b/cocos2d/core/textures/CCTexture2D.js @@ -332,16 +332,20 @@ var Texture2D = cc.Class(/** @lends cc.Texture2D# */{ /** * sets antialias texture parameters:
* - GL_TEXTURE_MIN_FILTER = GL_NEAREST
- * - GL_TEXTURE_MAG_FILTER = GL_NEAREST + * - GL_TEXTURE_MAG_FILTER = GL_NEAREST
+ * supported only in native or WebGl rendering mode + * @method setAntiAliasTexParameters */ setAntiAliasTexParameters: function () { //support only in WebGl rendering mode }, /** - * Sets alias texture parameters: - * GL_TEXTURE_MIN_FILTER = GL_NEAREST - * GL_TEXTURE_MAG_FILTER = GL_NEAREST + * Sets alias texture parameters:
+ * GL_TEXTURE_MIN_FILTER = GL_NEAREST
+ * GL_TEXTURE_MAG_FILTER = GL_NEAREST
+ * supported only in native or WebGl rendering mode + * @method setAliasTexParameters */ setAliasTexParameters: function () { //support only in WebGl rendering mode