This Project Has Not Released Any Files
ウィンドウを出す。 クリア、"hello world"描画をシーングラフにセット。 閉じてなくてEsc押されてないなら、シーングラフを書き続ける。
svn:coneneko:trunk/src/coneneko/hello.d
- import coneneko.all, sdl;
- void main() {
- auto wnd = new Window();
- auto tree = new SceneGraph();
- auto rs = new RenderState();
- rs.blend = true;
- tree.root = tree.linkParallel(rs, new Clear(), new TextBoard("hello world", 0.0, 0.0));
- do { wnd.update(tree); } while (!wnd.closed && !wnd.key.pressing(SDLK_ESCAPE));
- }