Overte C++ Documentation
ModelLoader.h
1
//
2
// ModelLoader.h
3
// libraries/model-networking/src/model-networking
4
//
5
// Created by Sabrina Shanman on 2018/11/13.
6
// Copyright 2018 High Fidelity, Inc.
7
//
8
// Distributed under the Apache License, Version 2.0.
9
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10
//
11
12
#ifndef hifi_ModelLoader_h
13
#define hifi_ModelLoader_h
14
15
#include <shared/HifiTypes.h>
16
#include <hfm/HFM.h>
17
18
class
ModelLoader {
19
public
:
20
// Given the currently stored list of supported file formats, determine how to load a model from the given parameters.
21
// If successful, return an owned reference to the newly loaded model.
22
// If failed, return an empty reference.
23
hfm::Model::Pointer load(
const
hifi::ByteArray& data,
const
hifi::VariantHash& mapping,
const
hifi::URL& url,
const
std::string& webMediaType)
const
;
24
};
25
26
#endif
// hifi_ModelLoader_h
libraries
model-networking
src
model-networking
ModelLoader.h
Generated by
1.9.1