Overte C++ Documentation
BuildGraphicsMeshTask.h
1 //
2 // BuildGraphicsMeshTask.h
3 // model-baker/src/model-baker
4 //
5 // Created by Sabrina Shanman on 2018/12/06.
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_BuildGraphicsMeshTask_h
13 #define hifi_BuildGraphicsMeshTask_h
14 
15 #include <hfm/HFM.h>
16 #include <shared/HifiTypes.h>
17 
18 #include "Engine.h"
19 #include "BakerTypes.h"
20 
21 class BuildGraphicsMeshTask {
22 public:
23  using Input = baker::VaryingSet5<std::vector<hfm::Mesh>, hifi::URL, baker::MeshIndicesToModelNames, baker::NormalsPerMesh, baker::TangentsPerMesh>;
24  using Output = std::vector<graphics::MeshPointer>;
25  using JobModel = baker::Job::ModelIO<BuildGraphicsMeshTask, Input, Output>;
26 
27  void run(const baker::BakeContextPointer& context, const Input& input, Output& output);
28 };
29 
30 #endif // hifi_BuildGraphicsMeshTask_h