Nez.Portable/ECS/Components/Renderables/LineRenderer.cs
/// <summary>
/// adds a vert to the list
/// </summary>
/// <param name="index">Index.</param>
/// <param name="position">Position.</param>
/// <param name="texCoord">Tex coordinate.</param>
/// <param name="col">Col.</param>
adds a vert to the list
adds a vert to the list
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        void addVert(int index, Vector2 position, Vector2 texCoord, Color col)
        {
            _vertices.ensureCapacity();
            _vertices.buffer[index].Position = position.toVector3();
            _vertices.buffer[index].TextureCoordinate = texCoord;
            _vertices.buffer[index].Color = col;
            _vertices.length++;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] void addVert ( int index , Vector2 position , Vector2 texCoord , Color col ) { _vertices . ensureCapacity ( ) ; _vertices . buffer [ index ] . Position = position . toVector3 ( ) ; _vertices . buffer [ index ] . TextureCoordinate = texCoord ; _vertices . buffer [ index ] . Color = col ; _vertices . length ++ ; }
adds a vert to the list
adds a vert to the list
index
int
None
position
Vector2
None
texCoord
Vector2
None
col
Color
None