From 18869ca359399e985eee9b22d68248af95fe22c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Tue, 1 Oct 2013 20:17:50 +0000 Subject: [PATCH] Added Scene setup logic --- test/meshviewer.cpp | 4 ++ test/meshviewer_index.html | 95 ++++++++++++++++++++++++++++---------- test/scenesetup.js | 19 ++++++++ test/type_dictionnary.js | 3 +- 4 files changed, 96 insertions(+), 25 deletions(-) create mode 100644 test/scenesetup.js diff --git a/test/meshviewer.cpp b/test/meshviewer.cpp index f7d08e4b..73608ba9 100644 --- a/test/meshviewer.cpp +++ b/test/meshviewer.cpp @@ -466,6 +466,10 @@ public: if (m_stream_update_time > .0f) { m_stream_update_time = -1.f; + MessageService::Send(MessageBucket::AppIn, + " addlight 0.0 position (4 -1 -4) color (.0 .2 .5 1) \ + addlight 0.0 position (8 2 6) color #ffff \ + custom setmesh \"[sc#f8f ab 1]\""); // MessageService::Send(MessageBucket::AppIn, "[sc#f8f ab 1]"); // MessageService::Send(MessageBucket::AppIn, "[sc#f8f ab 1 splt 4 twy 90]"); // MessageService::Send(MessageBucket::AppIn, "[sc#8ff afcb 1 1 1 0]"); diff --git a/test/meshviewer_index.html b/test/meshviewer_index.html index edfe9374..f069fc4a 100644 --- a/test/meshviewer_index.html +++ b/test/meshviewer_index.html @@ -88,8 +88,8 @@ progress::-webkit-progress-value + + +