ClassiCube/Model/ModelPart.cs

30 lines
561 B
C#
Raw Normal View History

2014-12-16 22:47:17 -05:00
using System;
using ClassicalSharp.GraphicsAPI;
namespace ClassicalSharp {
public class ModelPart {
public int Vb;
2015-05-31 16:29:09 -04:00
public int Offset = 0;
2014-12-16 22:47:17 -05:00
public int Count;
public IGraphicsApi Graphics;
2015-05-31 16:29:09 -04:00
public ModelPart( int vb, int offset, int count, IGraphicsApi graphics ) {
Offset = offset;
Count = count;
2014-12-16 22:47:17 -05:00
Graphics = graphics;
Vb = vb;
2014-12-16 22:47:17 -05:00
}
public void Render() {
Graphics.DrawVb( DrawMode.Triangles, VertexFormat.Pos3fTex2fCol4b, Vb, Offset, Count );
2014-12-16 22:47:17 -05:00
}
}
public enum SkinType {
Type64x32,
Type64x64,
Type64x64Slim,
}
}