最近の更新 (Recent Changes)

2008-11-16
2008-07-23
2008-07-10
2008-06-24
2008-05-24
2008-05-20

Últimas Arquivo Comunicados

This Project Has Not Released Any Files

Wikiガイド(Guide)

サイドバー (Side Bar)

ウィンドウを出す。 クリア、"hello world"描画をシーングラフにセット。 閉じてなくてEsc押されてないなら、シーングラフを書き続ける。

svn:coneneko:trunk/src/coneneko/hello.d

  1. import coneneko.all, sdl;
  2. void main() {
  3. auto wnd = new Window();
  4. auto tree = new SceneGraph();
  5. auto rs = new RenderState();
  6. rs.blend = true;
  7. tree.root = tree.linkParallel(rs, new Clear(), new TextBoard("hello world", 0.0, 0.0));
  8. do { wnd.update(tree); } while (!wnd.closed && !wnd.key.pressing(SDLK_ESCAPE));
  9. }

helloworld.png
出力
helloworld2.png
シーングラフ