Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/SceneGraphList.h @ 526:413667c70a1d draft
fix
author | tkaito@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 22 Oct 2009 01:31:09 +0900 |
parents | d2772feb34e3 |
children |
line wrap: on
line source
#ifndef SCENE_GRAPH_LIST #define SCENE_GRAPH_LIST #include <stdlib.h> #include "SgStruct.h" class SceneGraphList : SgStruct { public: SgStruct* first; SgStruct* last; int sgid; SceneGraphList () { first = last = this; next = prev = this; sgid = 0; } ~SceneGraphList () { } void addFirst(SgStruct* e); void addLast(SgStruct* e); SgStruct* getFirst(); SgStruct* getLast(); int remove(SgStruct* e); SgStruct* poll(); SgStruct* get(const char *name); }; #endif