FIG scenes (Scene Graph)

 

Scene https://docs.cocos.com/cocos2d-x/manual/zh/basic_concepts/scene.html (Scene) · GitBook

FIG scenes (Scene Graph) is a data structure of objects within the scene arrangement, all of its nodes (Node) are included within the scene on a tree (tree). (Although FIG scenario called "map", but the actual use to represent a tree structure).

 

Since the scene graph is a tree structure, you will be able to traverse it, Cocos2d-x use  中序遍历, the first to traverse the left subtree, then the root node, and finally the right subtree. Inorder traversal of the nodes of FIG possible to obtain  A, B, C, D, E, F, G, H, I such sequences.

 

Guess you like

Origin www.cnblogs.com/yuanjiangw/p/11291675.html