Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ModelNodeDefinition.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Serialization;
5 
6 namespace SiliconStudio.Paradox.Effects
7 {
8  /// <summary>
9  /// Describes a single transformation node, usually in a <see cref="Model"/> node hierarchy.
10  /// </summary>
11  [DataContract]
12  public struct ModelNodeDefinition
13  {
14  /// <summary>
15  /// The parent node index.
16  /// </summary>
17  public int ParentIndex;
18 
19  /// <summary>
20  /// The local transform.
21  /// </summary>
23 
24  /// <summary>
25  /// The name of this node.
26  /// </summary>
27  public string Name;
28 
29  /// <summary>
30  /// The flags of this node.
31  /// </summary>
33 
34  public override string ToString()
35  {
36  return string.Format("Parent: {0} Name: {1}", ParentIndex, Name);
37  }
38  }
39 }
ModelNodeFlags Flags
The flags of this node.
Stores transformation in a TRS format (Translation, Rotation and Scaling).
Definition: TransformTRS.cs:17
Describes a single transformation node, usually in a Model node hierarchy.
ModelNodeFlags
Flags describing state of a ModelNodeDefinition.