/// <summary> /// Initializes a new instance of the <see cref="SceneNode"/> class. /// </summary> public SceneNode() { _parent = null; _flags = SceneNodeFlags.IsDirty | SceneNodeFlags.IsEnabled; LastFrame = -1; InitializeGeometricObject(); }
internal void SetFlag(SceneNodeFlags flag, bool value) { if (value) { SetFlag(flag); } else { ClearFlag(flag); } }
internal void SetFlag(SceneNodeFlags flag) { _flags |= flag; }
internal void ClearFlag(SceneNodeFlags flag) { _flags &= ~flag; }
internal SceneNodeFlags GetFlags(SceneNodeFlags flags) { return(_flags & flags); }
internal bool GetFlag(SceneNodeFlags flag) { return((_flags & flag) == flag); }
internal void SetFlag(SceneNodeFlags flag, bool value) { if (value) SetFlag(flag); else ClearFlag(flag); }
internal SceneNodeFlags GetFlags(SceneNodeFlags flags) { return _flags & flags; }
//-------------------------------------------------------------- #region Methods //-------------------------------------------------------------- internal bool GetFlag(SceneNodeFlags flag) { return (_flags & flag) == flag; }
//-------------------------------------------------------------- #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(); }