GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
mesh_edgebreaker_decoder_impl_interface.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_IMPL_INTERFACE_H_
16#define DRACO_COMPRESSION_MESH_MESH_EDGEBREAKER_DECODER_IMPL_INTERFACE_H_
17
20
21namespace draco {
22
23// Forward declaration is necessary here to avoid circular dependencies.
25
26// Abstract interface used by MeshEdgebreakerDecoder to interact with the actual
27// implementation of the edgebreaker decoding method.
29 public:
31 virtual bool Init(MeshEdgebreakerDecoder *decoder) = 0;
32
34 int att_id) const = 0;
36 int att_id) const = 0;
37 virtual bool CreateAttributesDecoder(int32_t att_decoder_id) = 0;
38 virtual bool DecodeConnectivity() = 0;
39 virtual bool OnAttributesDecoded() = 0;
40
41 virtual MeshEdgebreakerDecoder *GetDecoder() const = 0;
42 virtual const CornerTable *GetCornerTable() const = 0;
43};
44
45} // namespace draco
46
47#endif // DRACO_COMPRESSION_MESH_MESH_EDGEBREAKER_DECODER_IMPL_INTERFACE_H_
Definition corner_table.h:53
Definition mesh_attribute_corner_table.h:30
Definition mesh_edgebreaker_decoder_impl_interface.h:28
virtual ~MeshEdgebreakerDecoderImplInterface()=default
virtual bool Init(MeshEdgebreakerDecoder *decoder)=0
virtual MeshEdgebreakerDecoder * GetDecoder() const =0
virtual const MeshAttributeIndicesEncodingData * GetAttributeEncodingData(int att_id) const =0
virtual const CornerTable * GetCornerTable() const =0
virtual bool CreateAttributesDecoder(int32_t att_decoder_id)=0
virtual const MeshAttributeCornerTable * GetAttributeCornerTable(int att_id) const =0
Definition mesh_edgebreaker_decoder.h:25
Definition attribute_octahedron_transform.cc:21
Definition mesh_attribute_indices_encoding_data.h:27