22 private static VertexDeclaration _vertexDeclaration =
new VertexDeclaration(
new VertexElement(0,
VertexElementFormat.Vector2,
VertexElementUsage.Position, 0),
new VertexElement(8,
VertexElementFormat.Color,
VertexElementUsage.Color, 0),
new VertexElement(12,
VertexElementFormat.Vector2,
VertexElementUsage.TextureCoordinate, 0));
59 for (
int i = 0; i < num; i++)
static float WrapAngle(float angle)
static double Abs(double value)
void PrepareStripWithProceduralPadding(Vector2[] positions, float[] rotations, StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 offsetForAllPositions=default(Vector2), bool includeBacksides=false, bool tryStoppingOddBug=true)
List< Vector2 > _temporaryPositionsCache
delegate float StripHalfWidthFunction(float progressOnStrip)
void AddVertex(StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 pos, float rot, int indexOnVertexArray, float progressOnStrip)
int _indicesAmountCurrentlyMaintained
void PrepareStrip(Vector2[] positions, float[] rotations, StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 offsetForAllPositions=default(Vector2), int? expectedVertexPairsAmount=null, bool includeBacksides=false)
void PrepareIndices(int vertexPaidsAdded, bool includeBacksides)
delegate Color StripColorFunction(float progressOnStrip)
int _vertexAmountCurrentlyMaintained
List< float > _temporaryRotationsCache
CustomVertexInfo[] _vertices
static Vector2 CatmullRom(Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float amount)
static VertexDeclaration _vertexDeclaration
CustomVertexInfo(Vector2 position, Color color, Vector2 texCoord)
VertexDeclaration VertexDeclaration