This is our new mobile-friendly and web-friendly library for loading glTF assets. It is still a work in progress, but already capable of loading many conformance models, including those with animation, skinning, and a couple of extensions (nonlit and texture transforms). Next week we will add a sample app demonstrating its usage.
75 lines
2.1 KiB
C++
75 lines
2.1 KiB
C++
/*
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "FFilamentAsset.h"
|
|
|
|
using namespace filament;
|
|
using namespace utils;
|
|
|
|
namespace gltfio {
|
|
|
|
using namespace details;
|
|
|
|
size_t FilamentAsset::getEntityCount() const noexcept {
|
|
return upcast(this)->getEntityCount();
|
|
}
|
|
|
|
const Entity* FilamentAsset::getEntities() const noexcept {
|
|
return upcast(this)->getEntities();
|
|
}
|
|
|
|
Entity FilamentAsset::getRoot() const noexcept {
|
|
return upcast(this)->getRoot();
|
|
}
|
|
|
|
size_t FilamentAsset::getMaterialInstanceCount() const noexcept {
|
|
return upcast(this)->getMaterialInstanceCount();
|
|
}
|
|
|
|
const MaterialInstance* const* FilamentAsset::getMaterialInstances() const noexcept {
|
|
return upcast(this)->getMaterialInstances();
|
|
}
|
|
|
|
size_t FilamentAsset::getBufferBindingCount() const noexcept {
|
|
return upcast(this)->getBufferBindingCount();
|
|
}
|
|
|
|
const BufferBinding* FilamentAsset::getBufferBindings() const noexcept {
|
|
return upcast(this)->getBufferBindings();
|
|
}
|
|
|
|
size_t FilamentAsset::getTextureBindingCount() const noexcept {
|
|
return upcast(this)->getTextureBindingCount();
|
|
}
|
|
|
|
const TextureBinding* FilamentAsset::getTextureBindings() const noexcept {
|
|
return upcast(this)->getTextureBindings();
|
|
}
|
|
|
|
filament::Aabb FilamentAsset::getBoundingBox() const noexcept {
|
|
return upcast(this)->getBoundingBox();
|
|
}
|
|
|
|
Animator* FilamentAsset::getAnimator() noexcept {
|
|
return upcast(this)->getAnimator();
|
|
}
|
|
|
|
void FilamentAsset::releaseSourceData() noexcept {
|
|
return upcast(this)->releaseSourceData();
|
|
}
|
|
|
|
} // namespace gltfio
|