Flutter Engine
The Flutter Engine
skin.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_SCENE_SKIN_H_
6#define FLUTTER_IMPELLER_SCENE_SKIN_H_
7
8#include <memory>
9
12#include "impeller/scene/importer/scene_flatbuffers.h"
13#include "impeller/scene/node.h"
14
15namespace impeller {
16namespace scene {
17
18class Skin final {
19 public:
20 static std::unique_ptr<Skin> MakeFromFlatbuffer(
21 const fb::Skin& skin,
22 const std::vector<std::shared_ptr<Node>>& scene_nodes);
24
27
28 std::shared_ptr<Texture> GetJointsTexture(Allocator& allocator);
29
30 private:
31 Skin();
32
33 std::vector<std::shared_ptr<Node>> joints_;
34 std::vector<Matrix> inverse_bind_matrices_;
35
36 Skin(const Skin&) = delete;
37
38 Skin& operator=(const Skin&) = delete;
39};
40
41} // namespace scene
42} // namespace impeller
43
44#endif // FLUTTER_IMPELLER_SCENE_SKIN_H_
An object that allocates device memory.
Definition: allocator.h:22
std::shared_ptr< Texture > GetJointsTexture(Allocator &allocator)
Definition: skin.cc:65
static std::unique_ptr< Skin > MakeFromFlatbuffer(const fb::Skin &skin, const std::vector< std::shared_ptr< Node > > &scene_nodes)
Definition: skin.cc:19
Skin & operator=(Skin &&)