Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneNode"/> class.
 /// </summary>
 public SceneNode()
 {
     _parent   = null;
     _flags    = SceneNodeFlags.IsDirty | SceneNodeFlags.IsEnabled;
     LastFrame = -1;
     InitializeGeometricObject();
 }
Example #2
0
 internal void SetFlag(SceneNodeFlags flag, bool value)
 {
     if (value)
     {
         SetFlag(flag);
     }
     else
     {
         ClearFlag(flag);
     }
 }
Example #3
0
 internal void SetFlag(SceneNodeFlags flag)
 {
     _flags |= flag;
 }
Example #4
0
 internal void ClearFlag(SceneNodeFlags flag)
 {
     _flags &= ~flag;
 }
Example #5
0
 internal SceneNodeFlags GetFlags(SceneNodeFlags flags)
 {
     return(_flags & flags);
 }
Example #6
0
 internal bool GetFlag(SceneNodeFlags flag)
 {
     return((_flags & flag) == flag);
 }
Example #7
0
 internal void SetFlag(SceneNodeFlags flag, bool value)
 {
   if (value)
     SetFlag(flag);
   else
     ClearFlag(flag);
 }
Example #8
0
 internal void SetFlag(SceneNodeFlags flag)
 {
   _flags |= flag;
 }
Example #9
0
 internal void ClearFlag(SceneNodeFlags flag)
 {
   _flags &= ~flag;
 }
Example #10
0
 internal SceneNodeFlags GetFlags(SceneNodeFlags flags)
 {
   return _flags & flags;
 }
Example #11
0
    //--------------------------------------------------------------
    #region Methods
    //--------------------------------------------------------------

    internal bool GetFlag(SceneNodeFlags flag)
    {
      return (_flags & flag) == flag;
    }
Example #12
0
    //--------------------------------------------------------------
    #region Creation & Cleanup
    //--------------------------------------------------------------

    /// <summary>
    /// Initializes a new instance of the <see cref="SceneNode"/> class.
    /// </summary>
    public SceneNode()
    {
      _parent = null;
      _flags = SceneNodeFlags.IsDirty | SceneNodeFlags.IsEnabled;
      LastFrame = -1;
      InitializeGeometricObject();
    }