diff options
| author | Treeki <treeki@gmail.com> | 2012-09-25 00:35:58 +0200 | 
|---|---|---|
| committer | Treeki <treeki@gmail.com> | 2012-09-25 00:35:58 +0200 | 
| commit | 8a7cecf7a361e4a14b34a362660bca4b662e8869 (patch) | |
| tree | 207754fbb5b8143b9cbaa4598f7525a1ea63b011 | |
| parent | 57459fda5c237873f287a0a600dd0daee666fe4d (diff) | |
| download | nw4rtools-master.tar.gz nw4rtools-master.zip  | |
| -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);  | 
