diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 15:46:32 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 15:46:32 +0100 |
| commit | cb91338f8038afbade79f12e04d0294b94f75228 (patch) | |
| tree | f5edb1dc9e12f45f4938ed96979e4d16b1461863 /src/OpenTKGameWindow.cs | |
| parent | 4f73db4b5e1d823448b8f9c0ad3094ce23afe6c9 (diff) | |
simpler layouting queue test
Diffstat (limited to 'src/OpenTKGameWindow.cs')
| -rw-r--r-- | src/OpenTKGameWindow.cs | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index bb5b67e6..12099e48 100644 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -261,16 +261,9 @@ namespace Crow #endif //Debug.WriteLine ("======= Layouting queue start ======="); - while (Interface.RegisteredGOForLayouting.Count > 0){ - while (Interface.RegisteredGOForLayouting.Count > 0){ - GraphicObject go = Interface.RegisteredGOForLayouting.Dequeue (); - go.EnqueueForLayouting (); - go.RegisteredLayoutings = LayoutingType.None; - } - while (Interface.LayoutingQueue.First != null) { - LayoutingQueueItem lqi = Interface.LayoutingQueue.Dequeue (); - lqi.ProcessLayouting (); - } + while (Interface.LayoutingQueue.Count > 0) { + LayoutingQueueItem lqi = Interface.LayoutingQueue.Dequeue (); + lqi.ProcessLayouting (); } #if MEASURE_TIME @@ -551,11 +544,12 @@ namespace Crow #endregion #region ILayoutable implementation - - //TODO:uneeded list, should be removed - public List<LinkedListNode<LayoutingQueueItem>> RegisteredLQINodes { get; } = new List<LinkedListNode<LayoutingQueueItem>>(); + public LayoutingType RegisteredLayoutings { + get { return LayoutingType.None; } + set { throw new NotImplementedException (); } + } public void RegisterForLayouting (LayoutingType layoutType) { throw new NotImplementedException (); } - public void UpdateLayout (LayoutingType layoutType) { throw new NotImplementedException (); } + public bool UpdateLayout (LayoutingType layoutType) { throw new NotImplementedException (); } public Rectangle ContextCoordinates (Rectangle r) { return r; |