mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-06 04:25:05 -04:00
28 lines
502 B
C#
28 lines
502 B
C#
using System;
|
|
using ClassicalSharp.GraphicsAPI;
|
|
|
|
namespace ClassicalSharp {
|
|
|
|
public class ModelPart {
|
|
|
|
public int Offset = 0;
|
|
public int Count;
|
|
public IGraphicsApi Graphics;
|
|
|
|
public ModelPart( int offset, int count, IGraphicsApi graphics ) {
|
|
Offset = offset;
|
|
Count = count;
|
|
Graphics = graphics;
|
|
}
|
|
|
|
public void Render( int vb ) {
|
|
Graphics.DrawVb( DrawMode.Triangles, vb, Offset, Count );
|
|
}
|
|
}
|
|
|
|
public enum SkinType {
|
|
Type64x32,
|
|
Type64x64,
|
|
Type64x64Slim,
|
|
}
|
|
} |