C# Class SAModelLibrary.GeometryFormats.Chunk.StripChunk

Base class for all generic strip chunks with indices of type TIndex.
Inheritance: StripChunkBase
Show file Open project: TGEnigma/SAModelTools Class Usage Examples

Public Methods

Method Description
ToTriangles ( ) : TIndex[]

Utility function to convert the triangle strip indices into triangle indices.

Protected Methods

Method Description
GetFlags ( ) : byte
ReadStripIndex ( EndianBinaryReader reader, &index ) : void
WriteStripIndex ( EndianBinaryWriter writer, &index ) : void

Private Methods

Method Description
ReadBody ( int size, byte flags, EndianBinaryReader reader ) : void
WriteBody ( EndianBinaryWriter writer ) : void

Method Details

GetFlags() protected method

protected GetFlags ( ) : byte
return byte

ReadStripIndex() protected abstract method

protected abstract ReadStripIndex ( EndianBinaryReader reader, &index ) : void
reader EndianBinaryReader
return void

ToTriangles() public method

Utility function to convert the triangle strip indices into triangle indices.
public ToTriangles ( ) : TIndex[]
return TIndex[]

WriteStripIndex() protected abstract method

protected abstract WriteStripIndex ( EndianBinaryWriter writer, &index ) : void
writer EndianBinaryWriter
return void