GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
metadata_encoder.h
Go to the documentation of this file.
1// Copyright 2017 The Draco Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15#ifndef DRACO_METADATA_METADATA_ENCODER_H_
16#define DRACO_METADATA_METADATA_ENCODER_H_
17
21
22namespace draco {
23
24// Class for encoding metadata. It could encode either base Metadata class or
25// a metadata of a geometry, e.g. a point cloud.
27 public:
29
31 const GeometryMetadata *metadata);
32 bool EncodeMetadata(EncoderBuffer *out_buffer, const Metadata *metadata);
33
34 private:
35 bool EncodeAttributeMetadata(EncoderBuffer *out_buffer,
36 const AttributeMetadata *metadata);
37 bool EncodeString(EncoderBuffer *out_buffer, const std::string &str);
38};
39} // namespace draco
40
41#endif // DRACO_METADATA_METADATA_ENCODER_H_
Definition geometry_metadata.h:25
Definition encoder_buffer.h:29
Definition geometry_metadata.h:58
MetadataEncoder()
Definition metadata_encoder.h:28
bool EncodeGeometryMetadata(EncoderBuffer *out_buffer, const GeometryMetadata *metadata)
Definition metadata_encoder.cc:62
bool EncodeMetadata(EncoderBuffer *out_buffer, const Metadata *metadata)
Definition metadata_encoder.cc:21
Definition metadata.h:96
str
Definition meshpage.php:1778
Definition attribute_octahedron_transform.cc:21