예제 #1
0
        public void RoomVertexRenderingEffect(UInt16 value, libtr2.RoomRenderingEffect result)
        {
            var basevert = new libtr1.Vertex(0, 0, 0);
            var roomvert = new libtr2.RoomVertex(basevert, 0, value, 0);

            Assert.That(roomvert.Attributes == result);
        }
예제 #2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="libtr.TR2.RoomData"/> struct.
		/// </summary>
		/// <param name="vertices">The vertices.</param>
		/// <param name="rectangles">The textured rectangles.</param>
		/// <param name="triangles">The textured triangles.</param>
		/// <param name="sprites">The sprites.</param>
		public RoomData (
			RoomVertex [] vertices, Face4 [] rectangles,
			Face3 [] triangles, RoomSprite [] sprites) : this () {
			VertexCount = (Int16) vertices.Length;
			RectangleCount = (Int16) rectangles.Length;
			TriangleCount = (Int16) triangles.Length;
			SpriteCount = (Int16) sprites.Length;
			Vertices = vertices;
			Rectangles = rectangles;
			Triangles = triangles;
			Sprites = sprites;
		}
예제 #3
0
파일: Test.cs 프로젝트: SplittyDev/libtr
		public void RoomVertexRenderingEffect (UInt16 value, libtr2.RoomRenderingEffect result) {
			var basevert = new libtr1.Vertex (0, 0, 0);
			var roomvert = new libtr2.RoomVertex (basevert, 0, value, 0);
			Assert.That (roomvert.Attributes == result);
		}