import Graphics; import Graphics3D; import GUI; // グラフィックスデータと3DCGレンダラーの生成 int graphicsID = newGraphics( ); int rendererID = newGraphics3DRenderer( 800, 600, graphicsID ); // 表示画面の生成 int windowID = newWindow( 0, 0, 800, 600, " Hello 3DCG ! " ); int labelID = newImageLabel( 0, 0, 800, 600, graphicsID ); mountComponent( labelID, windowID ); setGraphics3DColor( rendererID, 0, 0, 0, 255 ); // 背景色を黒に設定 paintGraphics3D( rendererID ); // 3DCGを描画 // GUIの再描画 paintComponent( labelID ); paintComponent( windowID ); // 画像をファイルに出力する場合は、下の行のコメントアウトを外してください //exportGraphics( graphicsID, "Test.png", "PNG" );