From 4c8066e39f8435bab3145b508cc7b7d24681b8e4 Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Thu, 12 Nov 2015 18:23:56 +0800 Subject: [PATCH] Normalize function names. --- cocos/2d/CCDrawNode.cpp | 1 - cocos/2d/CCDrawNode.h | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cocos/2d/CCDrawNode.cpp b/cocos/2d/CCDrawNode.cpp index 6faddf46b2..197e8ffb30 100644 --- a/cocos/2d/CCDrawNode.cpp +++ b/cocos/2d/CCDrawNode.cpp @@ -424,7 +424,6 @@ void DrawNode::onDrawGLLine(const Mat4 &transform, uint32_t flags) CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1,_bufferCountGLLine); #ifdef CC_STUDIO_ENABLED_VIEW // for cocostudio only - //如果开启线抗锯齿, 如参考线绘制, 绘制完成开启多重采样 if (this->_lineSmoothEnable == true) glEnable(GL_MULTISAMPLE); #endif diff --git a/cocos/2d/CCDrawNode.h b/cocos/2d/CCDrawNode.h index a6a259e4a4..50bbd2cbbb 100644 --- a/cocos/2d/CCDrawNode.h +++ b/cocos/2d/CCDrawNode.h @@ -314,11 +314,14 @@ public: void setLineWidth(int lineWidth); #ifdef CC_STUDIO_ENABLED_VIEW // for cocostudio only - void csSetLineSmooth(bool enable); + // Set enable or disable multisampling effect on CocosStudio guide lines. + void setLineSmooth(bool enable); - bool csIsLineSmooth(); + // Get multisampling effect on CocosStudio guide lines mode. + bool isLineSmooth(); - float csGetLineWidth(); + // Get CocosStudio guide lines width. + float getLineWidth(); #endif CC_CONSTRUCTOR_ACCESS: