diff options
Diffstat (limited to '')
-rwxr-xr-x | TestApp/Main.cs | 21 |
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); |