view TaskManager/Test/test_render/SceneGraphIterator.h @ 228:c254a2bd1b34

remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Thu, 12 Feb 2009 16:31:38 +0900
parents 3f4c6a75d7e0
children 2a0fad8a817d
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);
    void next(void);
    void next(int id);
    void remove(void);
    SceneGraphPtr get(void);
};

typedef SceneGraphIterator *SceneGraphIteratorPtr;

#endif