Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Graphics.VertexStrip Class Reference

Classes

struct  CustomVertexInfo
 

Public Member Functions

delegate Color StripColorFunction (float progressOnStrip)
 
delegate float StripHalfWidthFunction (float progressOnStrip)
 
void PrepareStrip (Vector2[] positions, float[] rotations, StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 offsetForAllPositions=default(Vector2), int? expectedVertexPairsAmount=null, bool includeBacksides=false)
 
void PrepareStripWithProceduralPadding (Vector2[] positions, float[] rotations, StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 offsetForAllPositions=default(Vector2), bool includeBacksides=false, bool tryStoppingOddBug=true)
 
void DrawTrail ()
 

Private Member Functions

void PrepareIndices (int vertexPaidsAdded, bool includeBacksides)
 
void AddVertex (StripColorFunction colorFunction, StripHalfWidthFunction widthFunction, Vector2 pos, float rot, int indexOnVertexArray, float progressOnStrip)
 

Private Attributes

CustomVertexInfo[] _vertices = new CustomVertexInfo[1]
 
int _vertexAmountCurrentlyMaintained
 
short[] _indices = new short[1]
 
int _indicesAmountCurrentlyMaintained
 
List< Vector2_temporaryPositionsCache = new List<Vector2>()
 
List< float > _temporaryRotationsCache = new List<float>()
 

Detailed Description

Definition at line 8 of file VertexStrip.cs.


The documentation for this class was generated from the following file: