2015-08-23 09:13:28 +10:00

25 lines
446 B
C#

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,
}
}