mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
Remove unused method isSparseAccessor
This commit is contained in:
parent
b95dcb7e7a
commit
5bd1d052ad
@ -494,20 +494,6 @@ std::size_t CGLTFMeshFileLoader::MeshExtractor::getByteStride(
|
|||||||
return view.byteStride.value_or(accessor.elementSize());
|
return view.byteStride.value_or(accessor.elementSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Specifies whether integer data values are normalized (true) to [0, 1] (for unsigned types)
|
|
||||||
* or to [-1, 1] (for signed types) when they are accessed. This property MUST NOT be set to
|
|
||||||
* true for accessors with FLOAT or UNSIGNED_INT component type.
|
|
||||||
* Documentation: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_accessor_normalized
|
|
||||||
* Required: NO
|
|
||||||
*/
|
|
||||||
bool CGLTFMeshFileLoader::MeshExtractor::isAccessorNormalized(
|
|
||||||
const std::size_t accessorIdx) const
|
|
||||||
{
|
|
||||||
const auto& accessor = m_gltf_model.accessors->at(accessorIdx);
|
|
||||||
return accessor.normalized;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Walk through the complex chain of the model to extract the required buffer.
|
* Walk through the complex chain of the model to extract the required buffer.
|
||||||
* Accessor -> BufferView -> Buffer
|
* Accessor -> BufferView -> Buffer
|
||||||
|
@ -104,8 +104,6 @@ class CGLTFMeshFileLoader : public IMeshLoader
|
|||||||
|
|
||||||
std::size_t getByteStride(const std::size_t accessorIdx) const;
|
std::size_t getByteStride(const std::size_t accessorIdx) const;
|
||||||
|
|
||||||
bool isAccessorNormalized(const std::size_t accessorIdx) const;
|
|
||||||
|
|
||||||
BufferOffset getBuffer(const std::size_t accessorIdx) const;
|
BufferOffset getBuffer(const std::size_t accessorIdx) const;
|
||||||
|
|
||||||
std::optional<std::size_t> getIndicesAccessorIdx(const std::size_t meshIdx,
|
std::optional<std::size_t> getIndicesAccessorIdx(const std::size_t meshIdx,
|
||||||
|
Loading…
Reference in New Issue
Block a user