Can';在cocos2d-x中甚至不能绘制平滑的空圆
我已经搜索了很多,但仍然不能简单地在cocos2dx中绘制平滑的圆Can';在cocos2d-x中甚至不能绘制平滑的空圆,cocos2d-x,geometry,antialiasing,Cocos2d X,Geometry,Antialiasing,我已经搜索了很多,但仍然不能简单地在cocos2dx中绘制平滑的圆 drawCircle没有完成他们的工作,它很难画出一个圆。 有人知道在cocos2d-x中绘制完美光滑圆的特殊解决方案吗 下面是由drawCircle造成的问题:您需要启用抗锯齿功能。在iOS上,您可以通过在AppController.mm中更改视图的创建来执行以下操作: CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds]
drawCircle
没有完成他们的工作,它很难画出一个圆。
有人知道在cocos2d-x中绘制完美光滑圆的特殊解决方案吗
下面是由
drawCircle
造成的问题:您需要启用抗锯齿功能。在iOS上,您可以通过在AppController.mm中更改视图的创建来执行以下操作:
CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds]
pixelFormat: (NSString*)cocos2d::GLViewImpl::_pixelFormat
depthFormat: cocos2d::GLViewImpl::_depthFormat
preserveBackbuffer: NO
sharegroup: nil
multiSampling: YES // <- by default is NO
numberOfSamples: 4 ]; // <- if more samples the smoother shapes are, but more time takes the drawing
ccealgview*eaglView=[ccealgview viewWithFrame:[窗口边界]
pixelFormat:(NSString*)cocos2d::GLViewImpl::\u pixelFormat
depthFormat:cocos2d::GLViewImpl::\u depthFormat
巴弗:没有
共享组:无
多重采样:是//您需要启用抗锯齿。在iOS上,您可以通过在AppController.mm中更改cceagView的创建来实现:
CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds]
pixelFormat: (NSString*)cocos2d::GLViewImpl::_pixelFormat
depthFormat: cocos2d::GLViewImpl::_depthFormat
preserveBackbuffer: NO
sharegroup: nil
multiSampling: YES // <- by default is NO
numberOfSamples: 4 ]; // <- if more samples the smoother shapes are, but more time takes the drawing
ccealgview*eaglView=[ccealgview viewWithFrame:[窗口边界]
pixelFormat:(NSString*)cocos2d::GLViewImpl::\u pixelFormat
depthFormat:cocos2d::GLViewImpl::\u depthFormat
巴弗:没有
共享组:无
多重采样:是//哪一版本的cocos2d-x?在什么操作系统上?@WezSieto我正在使用最新的cocos2d-x版本3.13.1,在IOS上测试哪一版本的CoCoCoS2D-x?在什么操作系统上?@WezSieto我正在使用最新的CoCoCoS2D-x版本3.13.1,在IOS上测试你试过吗?我试过了,并且这个解决方案没有任何变化,请看一看好的,在我帖子的链接上,drawCircle
没有画平滑的圆,它也用setLineWidth
>1画断圆。你试过了吗?我试过了,这个解决方案没有任何变化,请看我帖子上的链接,drawCircle
没有画平滑的圆,它也用setLineWi画断圆dth
>1。