Removed MinAfterUpdate from interface_node

This commit is contained in:
Peter Slattery 2019-11-02 14:17:52 -07:00
parent d9ae913bd8
commit f3270918d0
4 changed files with 5 additions and 6 deletions

View File

@ -488,7 +488,6 @@ OPERATION_RENDER_PROC(RenderNodeView)
while (NodeIteratorIsValid(NodeIter)) while (NodeIteratorIsValid(NodeIter))
{ {
interface_node* Node = NodeIter.At; interface_node* Node = NodeIter.At;
Node->Min = Node->MinAfterUpdate;
rect NodeBounds = CalculateNodeBounds(Node, State->NodeRenderSettings); rect NodeBounds = CalculateNodeBounds(Node, State->NodeRenderSettings);
b32 DrawFields = PointIsInRect(Mouse.Pos, NodeBounds); b32 DrawFields = PointIsInRect(Mouse.Pos, NodeBounds);

View File

@ -99,7 +99,6 @@ PushNodeOnList (node_list* List, s32 NameLength, s32 ConnectionsCount, v2 Min, v
Result->Connections = (node_connection*)(Result->Name.Memory + NameLength); Result->Connections = (node_connection*)(Result->Name.Memory + NameLength);
Result->Min = Min; Result->Min = Min;
Result->MinAfterUpdate = Min;
Result->Dim = Dim; Result->Dim = Dim;
List->Used += GetNodeMemorySize(*Result); 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 internal void

View File

@ -78,7 +78,6 @@ struct interface_node
string Name; string Name;
v2 Min, Dim; v2 Min, Dim;
v2 MinAfterUpdate;
s32 ConnectionsCount; s32 ConnectionsCount;
node_connection* Connections; node_connection* Connections;

View File

@ -21,10 +21,12 @@ x print node field names on hover or on the node
- Actual cursor states - Actual cursor states
API Improvements API Improvements
- Clean up DrawString... good lord x Clean up DrawString... good lord
- Add Text Alignment to DrawString x Add Text Alignment to DrawString
- Investigate why we're giving nodes bounds :NodesDontNeedToKnowTheirBounds - Investigate why we're giving nodes bounds :NodesDontNeedToKnowTheirBounds
- - Cant we just calculate this at render time? - - 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 Application
- More efficient HSV <-> RGB - More efficient HSV <-> RGB