using System; using ClassicalSharp.GraphicsAPI; namespace ClassicalSharp { public struct ModelPart { public int Offset, Count; public ModelPart( int vertexOffset, int vertexCount ) { Offset = vertexOffset / 4 * 6; Count = vertexCount / 4 * 6; } public void Render( IGraphicsApi api ) { api.DrawIndexedVb_TrisT2fC4b( Count, Offset ); } } public enum SkinType { Type64x32, Type64x64, Type64x64Slim, } }