Scene nodes now persist their order.

Implemented error handling and insertion logic for KRContext::createNode
Refactored KRNode::m_childNodes to be a std::list rather than a std::set
Added stub function, KRNode::createNode, which accepts a KrCreateNodeInfo structure
This commit is contained in:
2022-09-22 22:32:17 -07:00
parent 6c8bf9fa2c
commit ec65e788e0
8 changed files with 131 additions and 32 deletions

View File

@@ -109,10 +109,11 @@ typedef enum
typedef enum
{
KR_SCENE_NODE_INSERT_BEFORE,
KR_SCENE_NODE_INSERT_BEFORE = 0,
KR_SCENE_NODE_INSERT_AFTER,
KR_SCENE_NODE_INSERT_FIRST_CHILD,
KR_SCENE_NODE_INSERT_LAST_CHILD,
KR_SCENE_NODE_PREPEND_CHILD,
KR_SCENE_NODE_APPEND_CHILD,
KR_SCENE_NODE_INSERT_MAX_ENUM
} KrSceneNodeInsertLocation;
typedef int KrResourceMapIndex;