UltimateZoneBuilder/Source/Core/GZBuilder/Data/ModelDefEntry.cs
MaxED 2006cdc7bb GZDoom Builder 1.12a:
AngleOffset, PitchOffset and RollOffset MODELDEF properties are now supported.
Fixed a crash when editor tries to display a model for an actor without a valid sprite in Visual mode.
Fixed a possible crash when MODELDEF is reloaded from 2d-mode.
Fixed several things in Doom2_things.cfg.
UDMF Controls plugin:
Fixed several bugs in plugin's sliders logic.
2012-07-28 20:36:28 +00:00

47 lines
1.3 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 string Path; //this holds Path parameter of MODELDEF entry
internal List<string> ModelNames;
internal List<string> TextureNames;
internal string Location; //this holds location of resource, from which modeldef was loaded
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 (IndexBuffer ib in Model.Indeces2D)
ib.Dispose();
foreach (Mesh mesh in Model.Meshes)
mesh.Dispose();
foreach (Texture t in Model.Textures)
t.Dispose();
}
}
}
}