【发布时间】:2014-03-21 14:43:30
【问题描述】:
问题是我上面问的。一般我们可以使用:
glEnable(GL_LINE_SMOOTH);
但是opengles不支持这种方法,所以我们不能用它来玩安卓游戏。 在 cocos2d-x 中为 android 游戏绘制抗锯齿线有什么好的方法吗?非常感谢任何帮助。
【问题讨论】:
标签: android opengl-es cocos2d-x
问题是我上面问的。一般我们可以使用:
glEnable(GL_LINE_SMOOTH);
但是opengles不支持这种方法,所以我们不能用它来玩安卓游戏。 在 cocos2d-x 中为 android 游戏绘制抗锯齿线有什么好的方法吗?非常感谢任何帮助。
【问题讨论】:
标签: android opengl-es cocos2d-x
try this
CCPoint originPoint=CCPoint(100, 100);
CCPoint destinationPoint=CCPoint(500, 500);
ccDrawLine(originPoint, destinationPoint); // draw line
【讨论】: