Explorar o código

added tewakBar

Zoadian %!s(int64=11) %!d(string=hai) anos
pai
achega
112d0a82f2
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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();
 	}
 }