view TaskManager/Test/test_render/SceneGraphIterator.h @ 341:2a0fad8a817d

add param gid [SceneGraph.h], func [SceneGraphIterator]
author aaa
date Mon, 29 Jun 2009 20:28:42 +0900
parents 3f4c6a75d7e0
children 25c820b6060e
line wrap: on
line source

#ifndef INCLUDED_SCENE_GRAPH_ITERATOR
#define INCLUDED_SCENE_GRAPH_ITERATOR

#ifndef INCLUDED_SCENE_GRAPH
#  include "SceneGraph.h"
#endif

class SceneGraphIterator {
public:
    // 走査する SceneGraphList
    SceneGraphPtr list;

    // 現在参照中の SceneGraph
    SceneGraphPtr cur;

    void set(SceneGraphPtr list);
    int hasNext(void);
    int hasNext(int id);
    int hasNextGroup(int id);
    void next(void);
    void next(int id);
    void nextGroup(int id);
    void remove(void);
    SceneGraphPtr get(void);
};

typedef SceneGraphIterator *SceneGraphIteratorPtr;

#endif