Skip to content

Commit

Permalink
Fix build issues with AndroidGltfDataBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Apr 27, 2024
1 parent 046f51f commit 3d9165f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/fastgltf/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,14 +782,18 @@ namespace fastgltf {
void setAndroidAssetManager(AAssetManager* assetManager) noexcept;

class AndroidGltfDataBuffer : public GltfDataBuffer {
explicit AndroidGltfDataBuffer(const std::filesystem::path& path, std::uint64_t byteOffset);
explicit AndroidGltfDataBuffer(const std::filesystem::path& path, std::uint64_t byteOffset) noexcept;

public:
explicit AndroidGltfDataBuffer() noexcept = default;
AndroidGltfDataBuffer(const AndroidGltfDataBuffer& other) = delete;
AndroidGltfDataBuffer& operator=(const AndroidGltfDataBuffer& other) = delete;
AndroidGltfDataBuffer(AndroidGltfDataBuffer&& other) noexcept = default;
AndroidGltfDataBuffer& operator=(AndroidGltfDataBuffer&& other) noexcept = default;
~AndroidGltfDataBuffer() noexcept override = default;

static Expected<AndroidGltfDataBuffer> FromAsset(const std::filesystem::path& path, std::uint64_t byteOffset = 0) noexcept {
AndroidGltfDataBuffer buffer(path);
AndroidGltfDataBuffer buffer(path, byteOffset);
if (buffer.buffer.get() == nullptr) {
return buffer.error;
}
Expand Down

0 comments on commit 3d9165f

Please sign in to comment.