Mercurial > hg > Game > Cerium
view Renderer/Engine/SceneGraphList.h @ 572:096a900bd9d3 draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2009 00:40:24 +0900 |
parents | |
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