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
18
#include "
draco/core/encoder_buffer.h
"
19
#include "
draco/metadata/geometry_metadata.h
"
20
#include "
draco/metadata/metadata.h
"
21
22
namespace
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.
26
class
MetadataEncoder
{
27
public
:
28
MetadataEncoder
() {}
29
30
bool
EncodeGeometryMetadata
(
EncoderBuffer
*out_buffer,
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_
draco::AttributeMetadata
Definition
geometry_metadata.h:25
draco::EncoderBuffer
Definition
encoder_buffer.h:29
draco::GeometryMetadata
Definition
geometry_metadata.h:58
draco::MetadataEncoder::MetadataEncoder
MetadataEncoder()
Definition
metadata_encoder.h:28
draco::MetadataEncoder::EncodeGeometryMetadata
bool EncodeGeometryMetadata(EncoderBuffer *out_buffer, const GeometryMetadata *metadata)
Definition
metadata_encoder.cc:62
draco::MetadataEncoder::EncodeMetadata
bool EncodeMetadata(EncoderBuffer *out_buffer, const Metadata *metadata)
Definition
metadata_encoder.cc:21
draco::Metadata
Definition
metadata.h:96
encoder_buffer.h
geometry_metadata.h
str
str
Definition
meshpage.php:1778
metadata.h
draco
Definition
attribute_octahedron_transform.cc:21
draco
metadata
metadata_encoder.h
Generated by
1.15.0