From f3270918d02f1363945adb6d0cf9c8054187e878 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Sat, 2 Nov 2019 14:17:52 -0700 Subject: [PATCH] Removed MinAfterUpdate from interface_node --- src/foldhaus_interface.cpp | 1 - src/foldhaus_node.cpp | 3 +-- src/foldhaus_node.h | 1 - todo.txt | 6 ++++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/foldhaus_interface.cpp b/src/foldhaus_interface.cpp index 3a257d1..2474890 100644 --- a/src/foldhaus_interface.cpp +++ b/src/foldhaus_interface.cpp @@ -488,7 +488,6 @@ OPERATION_RENDER_PROC(RenderNodeView) while (NodeIteratorIsValid(NodeIter)) { interface_node* Node = NodeIter.At; - Node->Min = Node->MinAfterUpdate; rect NodeBounds = CalculateNodeBounds(Node, State->NodeRenderSettings); b32 DrawFields = PointIsInRect(Mouse.Pos, NodeBounds); diff --git a/src/foldhaus_node.cpp b/src/foldhaus_node.cpp index ab01521..5f660f0 100644 --- a/src/foldhaus_node.cpp +++ b/src/foldhaus_node.cpp @@ -99,7 +99,6 @@ PushNodeOnList (node_list* List, s32 NameLength, s32 ConnectionsCount, v2 Min, v Result->Connections = (node_connection*)(Result->Name.Memory + NameLength); Result->Min = Min; - Result->MinAfterUpdate = Min; Result->Dim = Dim; List->Used += GetNodeMemorySize(*Result); @@ -718,7 +717,7 @@ PlaceNode (node_list* NodeList, interface_node* Node, v2 Position, b32 Flags) } } - Node->MinAfterUpdate = Position; + Node->Min = Position; } internal void diff --git a/src/foldhaus_node.h b/src/foldhaus_node.h index e89a056..f6ae533 100644 --- a/src/foldhaus_node.h +++ b/src/foldhaus_node.h @@ -78,7 +78,6 @@ struct interface_node string Name; v2 Min, Dim; - v2 MinAfterUpdate; s32 ConnectionsCount; node_connection* Connections; diff --git a/todo.txt b/todo.txt index 2ca35e9..2a5055b 100644 --- a/todo.txt +++ b/todo.txt @@ -21,10 +21,12 @@ x print node field names on hover or on the node - Actual cursor states API Improvements -- Clean up DrawString... good lord -- Add Text Alignment to DrawString +x Clean up DrawString... good lord +x Add Text Alignment to DrawString - Investigate why we're giving nodes bounds :NodesDontNeedToKnowTheirBounds - - Cant we just calculate this at render time? +- Move nodes over to referencing eachother based on a UID system +- separate out interface nodes from computation nodes (interface in a binary/quad tree?) Application - More efficient HSV <-> RGB