summaryrefslogtreecommitdiff
path: root/TestApp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-24 05:07:45 +0100
committerTreeki <treeki@gmail.com>2011-03-24 05:07:45 +0100
commit1def3c8459ff00cc839e5e6f11975c4807f5a9ff (patch)
treed5212d4dfa8ee2f4f6e21deed40ce76d181962b4 /TestApp
parent799330e70c7d074c4d923c12cc71ae39c3d0c20d (diff)
downloadnw4rtools-1def3c8459ff00cc839e5e6f11975c4807f5a9ff.tar.gz
nw4rtools-1def3c8459ff00cc839e5e6f11975c4807f5a9ff.zip
blahhh how did I forget thatskawo-debug
Diffstat (limited to '')
-rw-r--r--TestApp/Main.cs11
-rwxr-xr-xTestApp/bin/Debug/TestApp.exebin8192 -> 7680 bytes
-rw-r--r--TestApp/bin/Debug/TestApp.exe.mdbbin1334 -> 1265 bytes
3 files changed, 7 insertions, 4 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index 8e144f9..e99e797 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -27,7 +27,7 @@ namespace TestApp {
File.WriteAllBytes(mdlPath + "SMGoldwood.brres", BrresWriter.WriteFile(rf));*/
-
+ /*
for (int i = 0; i < 10; i++) {
string filename = "MMFullWorld";
string resmdlname = "WorldBase";
@@ -38,6 +38,8 @@ namespace TestApp {
var m = rf.GetModelGroup()["WorldBase"];
var bc = m.Bytecode["DrawOpa"];
+ var blah = bc.Instructions[2] as NW4RTools.Models.ByteCode.DrawShapeInstruction;
+ blah.MaterialID = (ushort)m.Materials.IndexOfKey("Material__76");
// trash most entries
var newList = new List<NW4RTools.Models.ByteCode.Instruction>();
for (int j = 0; j < i; j++) {
@@ -48,11 +50,12 @@ namespace TestApp {
File.WriteAllBytes(mdlPath + "base" + i.ToString() + ".brres", BrresWriter.WriteFile(rf));
}
+ //*/
- /*ResFile rf2 = BrresReader.LoadFile(File.ReadAllBytes(mdlPath + filename + ".brres"));
+ ResFile rf2 = BrresReader.LoadFile(File.ReadAllBytes(mdlPath + "base2.brres"));
using (var gw = new RenderWindow()) {
- gw.Title = filename;
- gw.SetModel(rf2, resmdlname);
+ gw.Title = "whatever";
+ gw.SetModel(rf2, "WorldBase");
gw.Run(1, 1);
}
//*/
diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe
index 5c3a09f..ca3f093 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 54eb541..758d413 100644
--- a/TestApp/bin/Debug/TestApp.exe.mdb
+++ b/TestApp/bin/Debug/TestApp.exe.mdb
Binary files differ