UltimateZoneBuilder/Source/Core/GZBuilder/Data/ModelDefEntry.cs

44 lines
1.1 KiB
C#
Raw Normal View History

2012-04-17 19:13:47 +00:00
using System;
using System.Collections.Generic;
using System.Text;
using SlimDX;
using SlimDX.Direct3D9;
using CodeImp.DoomBuilder.GZBuilder.MD3;
2012-04-17 19:13:47 +00:00
namespace CodeImp.DoomBuilder.GZBuilder.Data
{
public class ModeldefEntry
2012-04-17 19:13:47 +00:00
{
public string ClassName;
public string Path; //this holds Path parameter of MODELDEF entry
2012-04-17 19:13:47 +00:00
public List<string> ModelNames;
public List<string> TextureNames;
public string Location; //this holds location of resource, from which modeldef was loaded
2012-04-17 19:13:47 +00:00
public GZModel Model;
public Vector3 Scale;
public float zOffset;
public ModeldefEntry() {
2012-04-17 19:13:47 +00:00
ModelNames = new List<string>();
TextureNames = new List<string>();
}
public void Dispose() {
if (Model != null) {
foreach (IndexBuffer ib in Model.Indeces2D)
ib.Dispose();
foreach (Mesh mesh in Model.Meshes)
mesh.Dispose();
foreach (Texture t in Model.Textures)
t.Dispose();
}
}
2012-04-17 19:13:47 +00:00
}
}