summaryrefslogtreecommitdiff
path: root/TestApp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-25 00:35:58 +0200
committerTreeki <treeki@gmail.com>2012-09-25 00:35:58 +0200
commit8a7cecf7a361e4a14b34a362660bca4b662e8869 (patch)
tree207754fbb5b8143b9cbaa4598f7525a1ea63b011 /TestApp
parent57459fda5c237873f287a0a600dd0daee666fe4d (diff)
downloadnw4rtools-8a7cecf7a361e4a14b34a362660bca4b662e8869.tar.gz
nw4rtools-8a7cecf7a361e4a14b34a362660bca4b662e8869.zip
more catsHEADmaster
Diffstat (limited to 'TestApp')
-rwxr-xr-xTestApp/Main.cs21
1 files changed, 20 insertions, 1 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index e9d0663..a8f577f 100755
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -557,10 +557,14 @@ namespace TestApp {
dl.BeginPrimitives(PrimitiveType.Quads, 0, 4);
dl.WriteByte(0);
dl.WriteByte(0);
+ dl.WriteByte(0);
+ dl.WriteByte(1);
dl.WriteByte(1);
dl.WriteByte(1);
dl.WriteByte(2);
dl.WriteByte(2);
+ dl.WriteByte(2);
+ dl.WriteByte(3);
dl.WriteByte(3);
dl.WriteByte(3);
dl.End();
@@ -593,6 +597,16 @@ namespace TestApp {
new float[] { 0, sh }
};
tcd[0].Save();
+
+ tcd[1].EntryCount = 4;
+ tcd[1].Fraction = 0;
+ tcd[1].Data = new float[][] {
+ new float[] { 0, 0 },
+ new float[] { sw, 0 },
+ new float[] { sw, sh },
+ new float[] { 0, sh }
+ };
+ tcd[1].Save();
/* posd.Data = new float[][] {
new float[] { 0, -40, h },
new float[] { 0, -40, 0 },
@@ -610,11 +624,16 @@ namespace TestApp {
vs.TexCoordCount[0] = VertexSettings.CompCount.TexCoord2;
vs.TexCoordFrac[0] = 0;
+ vs.TexCoordDesc[1] = VertexSettings.DescType.Index8;
+ vs.TexCoordFormat[1] = VertexSettings.CompType.Int16;
+ vs.TexCoordCount[1] = VertexSettings.CompCount.TexCoord2;
+ vs.TexCoordFrac[1] = 0;
+
uint vd1, vd2, vat1, vat2, vat3;
vs.GetDesc(out vd1, out vd2);
vs.GetAttrFmt(out vat1, out vat2, out vat3);
- byte vtxSpecs = 1 << 4;
+ byte vtxSpecs = 2 << 4;
// setting up Unk in the hopes it will work, I think this is what it's for..
var unkStream = new OutputStream();
unkStream.WriteUInt32(vd1);