我是cocos2d/OpenGLES的新手,我遇到了一个找不到解决方案的问题。基本上,我想在CCRenderTexture中绘制一个抗锯齿圆,然后在多个Sprite上使用该纹理。除了抗锯齿部分之外的一切都很简单,但我卡住了,不知道下一步该去哪里。我现在的代码是:inttextureSize=64;CCRenderTexture*rt=[CCRenderTexturerenderTextureWithWidth:textureSizeheight:textureSize];[rtbeginWithClear:spriteColor.rg:spriteColor.gb:spriteColo
我知道有很多关于如何使用CCRenderTexture在CoCos2d中保存屏幕的示例,但它们似乎对我不起作用。我为客户编写了一个着色书应用程序,他们当然希望能够保存图像。我尝试了很多不同的方法,并且乱用了一堆例子,但都无济于事。最近,我一直收到此错误:2012-03-2413:07:03.749ColoringBook[823:1be03]cocos2d:ERROR:Failedtosavefile:/Users/macbookpro/Library/ApplicationSupport/iPhoneSimulator/5.1/Applications/76F88977-AD3A-4
正在为ipad开发一个绘图应用程序,并使用CCRenderTexture作为绘制Sprite的Canvas。我使用的绘制循环基于渲染纹理类的cocos示例中的绘制循环。[targetbegin];floatdistance=ccpDistance(start,end);if(distance>1){intd=(int)distance;floatdifx=end.x-start.x;floatdify=end.y-start.y;for(floati=0;i每次调用[targetend]时,我都会收到OpenGL0x0500错误:OpenGLerror0x0500in-[EAGLVie