"景先生毕设|www.jxszl.com

C# CCTexture2D类代码示例

2023-12-29 17:40编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CCTexture2D类的典型用法代码示例。如果您正苦于以下问题:C#CCTexture2D类的具体用法?C#CCTexture2D怎么用?C#CCTexture2D使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:CCMotionStreak publicCCMotionStreak(floatfade,floatminSegIn,floatstrokeIn,CCColor3Bcolor,CCTexture2Dtexture) { streakRenderCommand=newCCCustomCommand(RenderMotionStreak); AnchorPoint=CCPoint.Zero; IgnoreAnchorPointForPosition=true; StartingPositionInitialized=false; FastMode=true; Texture=texture; Color=color; stroke=strokeIn; BlendFunc=CCBlendFunc.NonPremultiplied; minSeg=(minSegIn==-1.0f)?stroke/5.0f:minSegIn; minSeg*=minSeg; fadeDelta=1.0f/fade; maxPoints=(int)(fade*60.0f)+2; pointState=newfloat[maxPoints]; pointVertexes=newCCPoint[maxPoints]; vertices=newCCV3F_C4B_T2F[(maxPoints+1)*2]; Schedule(); }
原文链接:http://www.jxszl.com/biancheng/C/556697.html