Пример #1
0
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_vertexBuffer = des.ReadClassPointer <hkMeshVertexBuffer>(br);
     br.ReadUInt64();
     m_isLocked = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_vertexBuffer  = des.ReadClassPointer <hkMeshVertexBuffer>(br);
     m_material      = des.ReadClassPointer <hkMeshMaterial>(br);
     m_boneMatrixMap = new hkMeshBoneIndexMapping();
     m_boneMatrixMap.Read(des, br);
     m_primitiveType = (PrimitiveType)br.ReadByte();
     br.ReadUInt16();
     br.ReadByte();
     m_numPrimitives = br.ReadInt32();
     m_indexType     = (MeshSectionIndexType)br.ReadByte();
     br.ReadUInt16();
     br.ReadByte();
     m_vertexStartIndex  = br.ReadInt32();
     m_transformIndex    = br.ReadInt32();
     m_indexBufferOffset = br.ReadInt32();
 }