mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-06 04:25:05 -04:00
34 lines
969 B
C#
34 lines
969 B
C#
// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT
|
|
using System;
|
|
using ClassicalSharp.GraphicsAPI;
|
|
|
|
namespace ClassicalSharp.Model {
|
|
|
|
/// <summary> Describes the starting index of this part within a model's array of vertices,
|
|
/// and the number of vertices following the starting index that this part uses. </summary>
|
|
public struct ModelPart {
|
|
|
|
public int Offset, Count;
|
|
public float RotX, RotY, RotZ;
|
|
|
|
public ModelPart( int offset, int count, float rotX, float rotY, float rotZ ) {
|
|
Offset = offset; Count = count;
|
|
RotX = rotX; RotY = rotY; RotZ = rotZ;
|
|
}
|
|
}
|
|
|
|
public struct ModelVertex {
|
|
public float X, Y, Z;
|
|
public ushort U, V;
|
|
|
|
public ModelVertex( float x, float y, float z, int u, int v ) {
|
|
X = x; Y = y; Z = z;
|
|
U = (ushort)u; V = (ushort)v;
|
|
}
|
|
}
|
|
|
|
/// <summary> Describes the type of skin that a humanoid model uses. </summary>
|
|
public enum SkinType {
|
|
Type64x32, Type64x64, Type64x64Slim,
|
|
}
|
|
} |