summaryrefslogtreecommitdiff
path: root/TestApp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-02-25 22:08:57 +0100
committerTreeki <treeki@gmail.com>2011-02-25 22:08:57 +0100
commit00e977b3dbb8f447b034b7be387ee1a1cce0598c (patch)
tree1a3e0c837d23b90c332e5e1dc4707607c19e7ebd /TestApp
parent1d5fa5585f08dd82a6722af3dd8ab360fd161151 (diff)
downloadnw4rtools-00e977b3dbb8f447b034b7be387ee1a1cce0598c.tar.gz
nw4rtools-00e977b3dbb8f447b034b7be387ee1a1cce0598c.zip
start of a brres writer
Diffstat (limited to 'TestApp')
-rw-r--r--TestApp/Main.cs8
-rw-r--r--TestApp/RenderWindow.cs2
-rw-r--r--TestApp/TestApp.pidbbin4285 -> 4285 bytes
-rwxr-xr-xTestApp/bin/Debug/NW4RTools.dllbin175616 -> 181760 bytes
-rw-r--r--TestApp/bin/Debug/NW4RTools.dll.mdbbin94193 -> 95922 bytes
-rwxr-xr-xTestApp/bin/Debug/TestApp.exebin5632 -> 5632 bytes
-rw-r--r--TestApp/bin/Debug/TestApp.exe.mdbbin994 -> 969 bytes
7 files changed, 6 insertions, 4 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index 150b5a7..e68a84d 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -14,18 +14,20 @@ namespace TestApp {
//string mdlName = "CS_W1";
//string mdlName = "bgB_4502";
//string mdlName = "cobKoopaCastle";
- string mdlName = "YB_model";
+ string mdlName = "CS_W9";
string whatever = (mdlName == "CS_W2" || mdlName == "CS_W3" || mdlName == "CS_W6") ? "a" : "";
byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres");
ResFile rf = BrresReader.LoadFile(file);
- using (var gw = new RenderWindow()) {
+ File.WriteAllBytes(mdlPath + mdlName + "_rewritten.brres", BrresWriter.WriteFile(rf));
+
+ /*using (var gw = new RenderWindow()) {
gw.Title = mdlName;
gw.SetModel(rf, mdlName);
gw.Run(1, 1);
- }
+ }*/
diff --git a/TestApp/RenderWindow.cs b/TestApp/RenderWindow.cs
index 64627a1..3215190 100644
--- a/TestApp/RenderWindow.cs
+++ b/TestApp/RenderWindow.cs
@@ -46,7 +46,7 @@ namespace TestApp {
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
//Matrix4 modelview = Matrix4.LookAt(new Vector3(1000, 600, 1000), new Vector3(1000, 0, 0), Vector3.UnitY);
- Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 0, 200), new Vector3(0, 0, 0), Vector3.UnitY);
+ Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 0, 1000), new Vector3(0, 0, 0), Vector3.UnitY);
GL.MatrixMode(MatrixMode.Modelview);
GL.LoadMatrix(ref modelview);
diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb
index 1da622f..4bbfe3a 100644
--- a/TestApp/TestApp.pidb
+++ b/TestApp/TestApp.pidb
Binary files differ
diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll
index 0fe74f3..3962f15 100755
--- a/TestApp/bin/Debug/NW4RTools.dll
+++ b/TestApp/bin/Debug/NW4RTools.dll
Binary files differ
diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb
index f7eb0df..f5f1318 100644
--- a/TestApp/bin/Debug/NW4RTools.dll.mdb
+++ b/TestApp/bin/Debug/NW4RTools.dll.mdb
Binary files differ
diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe
index b93d035..50b39bb 100755
--- a/TestApp/bin/Debug/TestApp.exe
+++ b/TestApp/bin/Debug/TestApp.exe
Binary files differ
diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb
index 9c7cd21..1c41f2c 100644
--- a/TestApp/bin/Debug/TestApp.exe.mdb
+++ b/TestApp/bin/Debug/TestApp.exe.mdb
Binary files differ