@@ -125,21 +125,27 @@ function machinchose() { return 'test machin '; } | |||||
function GetiFrameDivEmbed() { return (!g_frame_embed) ? (null) : (g_frame_embed.contentWindow.GetDivEmbed()); } | function GetiFrameDivEmbed() { return (!g_frame_embed) ? (null) : (g_frame_embed.contentWindow.GetDivEmbed()); } | ||||
function GetiFrameModuleVar() { return (!g_frame_embed) ? (null) : (g_frame_embed.contentWindow.GetEmbedModule()); } | function GetiFrameModuleVar() { return (!g_frame_embed) ? (null) : (g_frame_embed.contentWindow.GetEmbedModule()); } | ||||
function IsUsingNaCl() { return window.chrome; } | function IsUsingNaCl() { return window.chrome; } | ||||
function GetCmdDictionnary() { return CodeDictionnary[g_code_id]; } | |||||
</script> | </script> | ||||
<script src="./utils.js"></script> | <script src="./utils.js"></script> | ||||
<script src="./progress_status.js"></script> | |||||
<script src="./type_dictionnary.js"></script> | |||||
<script src="./progressstatus.js"></script> | |||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
CodeDictionnary[0] = new TypeDictionnary("EasyMesh"); | |||||
//Used by typedictionnary.js | |||||
function GetCmdDictionnary() { return CodeDictionnary[g_code_id]; } | |||||
g_code_id = 1; | |||||
</script> | </script> | ||||
<script src="./easy_mesh_dictionnary.js"></script> | |||||
<script src="./typedictionnary.js"></script> | |||||
<!-- Init Scene setup dictionnary --> | |||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
g_code_id = 1; | |||||
CodeDictionnary[1] = new TypeDictionnary("EasyMesh"); | |||||
CodeDictionnary[g_code_id--] = new TypeDictionnary("SceneSetup"); | |||||
</script> | </script> | ||||
<script src="./scenesetup.js"></script> | <script src="./scenesetup.js"></script> | ||||
<!-- Init Easy mesh dictionnary --> | |||||
<script type="text/javascript"> | |||||
CodeDictionnary[g_code_id] = new TypeDictionnary("EasyMesh"); | |||||
</script> | |||||
<script src="./easymeshdictionnary.js"></script> | |||||
<!-- Revert datas to normal --> | |||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
g_code_id = 0; | g_code_id = 0; | ||||
</script> | </script> | ||||
@@ -202,11 +208,11 @@ function machinchose() { return 'test machin '; } | |||||
//NaCl Specific | //NaCl Specific | ||||
if (IsUsingNaCl()) | if (IsUsingNaCl()) | ||||
{ | { | ||||
DynLoadFile("nacl_loading.js"); | |||||
g_frame_embed.src = 'meshviewer_nacl.html'; | |||||
DynLoadFile("naclloading.js"); | |||||
g_frame_embed.src = 'meshviewer.nacl.html'; | |||||
} | } | ||||
else | else | ||||
g_frame_embed.src = 'meshviewer_em.html'; | |||||
g_frame_embed.src = 'meshviewer.em.html'; | |||||
g_frame_embed.onload = function() { VarInit(); } | g_frame_embed.onload = function() { VarInit(); } | ||||
@@ -8,7 +8,7 @@ function GetEmbedModule() { return document.getElementById('id_embed_nacl_modu | |||||
if (parent.IsUsingNaCl()) parent.NaClLoadingInit(); | if (parent.IsUsingNaCl()) parent.NaClLoadingInit(); | ||||
</script> | </script> | ||||
<div id="id_div_embed_data" style="left:0px;top:0px;position:absolute;"> | <div id="id_div_embed_data" style="left:0px;top:0px;position:absolute;"> | ||||
<embed name="name_embed_nacl_module" id="id_embed_nacl_module" width=770 height=200 src="meshviewer_nacl.nmf" type="application/x-nacl" /> | |||||
<embed name="name_embed_nacl_module" id="id_embed_nacl_module" width=770 height=200 src="meshviewer.nacl.nmf" type="application/x-nacl" /> | |||||
</div> | </div> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -64,29 +64,40 @@ | |||||
<None Include="data\mesh-buffer.txt"> | <None Include="data\mesh-buffer.txt"> | ||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
<None Include="easy_mesh_dictionnary.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="generated\location.hh" /> | <None Include="generated\location.hh" /> | ||||
<None Include="generated\position.hh" /> | <None Include="generated\position.hh" /> | ||||
<None Include="generated\scenesetup-parser.output" /> | <None Include="generated\scenesetup-parser.output" /> | ||||
<None Include="generated\stack.hh" /> | <None Include="generated\stack.hh" /> | ||||
<None Include="meshviewer_index.html"> | |||||
<None Include="meshviewer.index.html"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
<None Include="meshviewer_nacl.html"> | |||||
<None Include="meshviewer.nacl.html"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
<None Include="meshviewer_nacl.nmf"> | |||||
<None Include="meshviewer.em.html"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
<None Include="nacl_loading.js"> | |||||
<None Include="meshviewer.nacl.nmf"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
<None Include="progress_status.js" /> | |||||
<None Include="scenesetup-parser.y" /> | <None Include="scenesetup-parser.y" /> | ||||
<None Include="scenesetup-scanner.l" /> | <None Include="scenesetup-scanner.l" /> | ||||
<None Include="type_dictionnary.js"> | |||||
<None Include="easymeshdictionnary.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="naclloading.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="progressstatus.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="utils.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="scenesetupdictionnary.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | |||||
</None> | |||||
<None Include="typedictionnary.js"> | |||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> | ||||
</None> | </None> | ||||
</ItemGroup> | </ItemGroup> | ||||
@@ -1,7 +1,6 @@ | |||||
//------------------------------------------------------------------------- | //------------------------------------------------------------------------- | ||||
//Command vars operations | //Command vars operations | ||||
//------------------------------------------------------------------------- | //------------------------------------------------------------------------- | ||||
CmdVar("[ ]", ["Opens a new context,\nevery operations between the braces\nwill only be done to the vertices added\nsince the start of this context."]); | |||||
CmdVar("float", ["Fraction value", "0.0"]); | CmdVar("float", ["Fraction value", "0.0"]); | ||||
CmdVar("int", ["No decimal value", "0"]); | CmdVar("int", ["No decimal value", "0"]); | ||||
CmdVar("bool", ["Boolean value", "true/false", "1/0"]); | CmdVar("bool", ["Boolean value", "true/false", "1/0"]); |