Axiom.Serialization.MeshSerializerImpl.ReadGeometryVertexElement C# (CSharp) Метод

ReadGeometryVertexElement() защищенный Метод

protected ReadGeometryVertexElement ( BinaryReader reader, VertexData data ) : void
reader System.IO.BinaryReader
data Axiom.Graphics.VertexData
Результат void
		protected virtual void ReadGeometryVertexElement( BinaryReader reader, VertexData data )
		{
			short source = ReadShort( reader );
			VertexElementType type = (VertexElementType)ReadUShort( reader );
			VertexElementSemantic semantic = (VertexElementSemantic)ReadUShort( reader );
			short offset = ReadShort( reader );
			short index = ReadShort( reader );

			// add the element to the declaration for the current vertex data
			data.vertexDeclaration.AddElement( source, offset, type, semantic, index );

			if ( type == VertexElementType.Color )
			{
				LogManager.Instance.Write( "Warning: VET_COLOUR element type is deprecated, you should use " +
										   "one of the more specific types to indicate the byte order. " +
										   "Use OgreMeshUpgrade on {0} as soon as possible. ", mesh.Name );
			}
		}