mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 01:52:24 -05:00
30 lines
No EOL
561 B
C#
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,
|
|
}
|
|
} |