GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
mesh_edgebreaker_decoder.h
Go to the documentation of this file.
1// Copyright 2016 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_COMPRESSION_MESH_MESH_EDGEBREAKER_DECODER_H_
16#define DRACO_COMPRESSION_MESH_MESH_EDGEBREAKER_DECODER_H_
17
21
22namespace draco {
23
24// Class for decoding data encoded by MeshEdgebreakerEncoder.
26 public:
28
29 const CornerTable *GetCornerTable() const override {
30 return impl_->GetCornerTable();
31 }
32
34 int att_id) const override {
35 return impl_->GetAttributeCornerTable(att_id);
36 }
37
39 int att_id) const override {
40 return impl_->GetAttributeEncodingData(att_id);
41 }
42
43 protected:
44 bool InitializeDecoder() override;
45 bool CreateAttributesDecoder(int32_t att_decoder_id) override;
46 bool DecodeConnectivity() override;
47 bool OnAttributesDecoded() override;
48
49 std::unique_ptr<MeshEdgebreakerDecoderImplInterface> impl_;
50};
51
52} // namespace draco
53
54#endif // DRACO_COMPRESSION_MESH_MESH_EDGEBREAKER_DECODER_H_
Definition corner_table.h:53
Definition mesh_attribute_corner_table.h:30
MeshDecoder()
Definition mesh_decoder.cc:21
const MeshAttributeCornerTable * GetAttributeCornerTable(int att_id) const override
Definition mesh_edgebreaker_decoder.h:33
const CornerTable * GetCornerTable() const override
Definition mesh_edgebreaker_decoder.h:29
MeshEdgebreakerDecoder()
Definition mesh_edgebreaker_decoder.cc:25
bool CreateAttributesDecoder(int32_t att_decoder_id) override
Definition mesh_edgebreaker_decoder.cc:27
bool InitializeDecoder() override
Definition mesh_edgebreaker_decoder.cc:31
const MeshAttributeIndicesEncodingData * GetAttributeEncodingData(int att_id) const override
Definition mesh_edgebreaker_decoder.h:38
std::unique_ptr< MeshEdgebreakerDecoderImplInterface > impl_
Definition mesh_edgebreaker_decoder.h:49
bool DecodeConnectivity() override
Definition mesh_edgebreaker_decoder.cc:64
bool OnAttributesDecoded() override
Definition mesh_edgebreaker_decoder.cc:68
Definition attribute_octahedron_transform.cc:21
Definition mesh_attribute_indices_encoding_data.h:27