mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-28 06:32:25 +00:00
42 lines
1 KiB
C#
42 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
using SlimDX;
|
|
using SlimDX.Direct3D9;
|
|
|
|
using CodeImp.DoomBuilder.GZBuilder.MD3;
|
|
|
|
namespace CodeImp.DoomBuilder.GZBuilder.Data
|
|
{
|
|
internal sealed class ModeldefEntry
|
|
{
|
|
internal string ClassName;
|
|
internal List<string> ModelNames;
|
|
internal List<string> TextureNames;
|
|
|
|
internal GZModel Model;
|
|
|
|
internal Vector3 Scale;
|
|
internal float zOffset;
|
|
|
|
internal float AngleOffset; //in radians
|
|
internal float PitchOffset; //in radians
|
|
internal float RollOffset; //in radians
|
|
|
|
internal ModeldefEntry() {
|
|
ModelNames = new List<string>();
|
|
TextureNames = new List<string>();
|
|
}
|
|
|
|
internal void Dispose() {
|
|
if (Model != null) {
|
|
foreach (Mesh mesh in Model.Meshes)
|
|
mesh.Dispose();
|
|
|
|
foreach (Texture t in Model.Textures)
|
|
t.Dispose();
|
|
}
|
|
}
|
|
}
|
|
}
|