Browse Source

meshviewer files name straightening

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 11 years ago
parent
commit
ab3a16fb91
10 changed files with 37 additions and 21 deletions
  1. +0
    -0
      test/easymeshdictionnary.js
  2. +0
    -0
      test/meshviewer.em.html
  3. +16
    -10
      test/meshviewer.index.html
  4. +1
    -1
      test/meshviewer.nacl.html
  5. +0
    -0
      test/meshviewer.nacl.nmf
  6. +20
    -9
      test/meshviewer.vcxproj
  7. +0
    -0
      test/naclloading.js
  8. +0
    -0
      test/progressstatus.js
  9. +0
    -1
      test/scenesetupdictionnary.js
  10. +0
    -0
      test/typedictionnary.js

test/easy_mesh_dictionnary.js → test/easymeshdictionnary.js View File


test/meshviewer_em.html → test/meshviewer.em.html View File


test/meshviewer_index.html → test/meshviewer.index.html View File

@@ -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(); }



test/meshviewer_nacl.html → test/meshviewer.nacl.html View File

@@ -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>

test/meshviewer_nacl.nmf → test/meshviewer.nacl.nmf View File


+ 20
- 9
test/meshviewer.vcxproj View File

@@ -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>


test/nacl_loading.js → test/naclloading.js View File


test/progress_status.js → test/progressstatus.js View File


test/scenesetup.js → test/scenesetupdictionnary.js View File

@@ -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"]);

test/type_dictionnary.js → test/typedictionnary.js View File


Loading…
Cancel
Save