-----------------------------------------------------------------------------------
| 439 | |
| 440 | // ----------------------------------------------------------------------------------- |
| 441 | void AssbinImporter::ReadBinaryMaterialProperty(IOStream *stream, aiMaterialProperty *prop) { |
| 442 | if (Read<uint32_t>(stream) != ASSBIN_CHUNK_AIMATERIALPROPERTY) |
| 443 | throw DeadlyImportError("Magic chunk identifiers are wrong!"); |
| 444 | /*uint32_t size =*/Read<uint32_t>(stream); |
| 445 | |
| 446 | prop->mKey = Read<aiString>(stream); |
| 447 | prop->mSemantic = Read<unsigned int>(stream); |
| 448 | prop->mIndex = Read<unsigned int>(stream); |
| 449 | |
| 450 | prop->mDataLength = Read<unsigned int>(stream); |
| 451 | prop->mType = (aiPropertyTypeInfo)Read<unsigned int>(stream); |
| 452 | prop->mData = new char[prop->mDataLength]; |
| 453 | stream->Read(prop->mData, 1, prop->mDataLength); |
| 454 | } |
| 455 | |
| 456 | // ----------------------------------------------------------------------------------- |
| 457 | void AssbinImporter::ReadBinaryMaterial(IOStream *stream, aiMaterial *mat) { |
nothing calls this directly
no test coverage detected