瀏覽代碼

added tewakBar

Zoadian 11 年之前
父節點
當前提交
112d0a82f2
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      source/app.d

+ 6 - 0
source/app.d

@@ -728,6 +728,10 @@ void main() {
 
 	scene.mesh.loadModel("C:/Coding/models/Collada/duck.dae");
 
+
+	TwWindowSize(window.width, window.height);
+	auto tweakBar = TwNewBar("TweakBar");
+
 	while(true) {
 		window.pollEvents();
 
@@ -739,6 +743,8 @@ void main() {
 
 		renderer.renderOneFrame(scene, camera, renderTarget, viewport);
 
+		TwDraw();
+
 		window.swapBuffers();
 	}
 }