ClassiCube/Model/ModelPart.cs
2015-06-01 06:45:22 +10:00

30 lines
No EOL
561 B
C#

using System;
using ClassicalSharp.GraphicsAPI;
namespace ClassicalSharp {
public class ModelPart {
public int Vb;
public int Offset = 0;
public int Count;
public IGraphicsApi Graphics;
public ModelPart( int vb, int offset, int count, IGraphicsApi graphics ) {
Offset = offset;
Count = count;
Graphics = graphics;
Vb = vb;
}
public void Render() {
Graphics.DrawVb( DrawMode.Triangles, VertexFormat.Pos3fTex2fCol4b, Vb, Offset, Count );
}
}
public enum SkinType {
Type64x32,
Type64x64,
Type64x64Slim,
}
}