GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
geometry_indices.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_ATTRIBUTES_GEOMETRY_INDICES_H_
16#define DRACO_ATTRIBUTES_GEOMETRY_INDICES_H_
17
18#include <inttypes.h>
19
20#include <limits>
21
23
24namespace draco {
25
26// Index of an attribute value entry stored in a GeometryAttribute.
27DEFINE_NEW_DRACO_INDEX_TYPE(uint32_t, AttributeValueIndex)
28// Index of a point in a PointCloud.
29DEFINE_NEW_DRACO_INDEX_TYPE(uint32_t, PointIndex)
30// Vertex index in a Mesh or CornerTable.
32// Corner index that identifies a corner in a Mesh or CornerTable.
34// Face index for Mesh and CornerTable.
36
37// Constants denoting invalid indices.
38static constexpr AttributeValueIndex kInvalidAttributeValueIndex(
39 std::numeric_limits<uint32_t>::max());
40static constexpr PointIndex kInvalidPointIndex(
41 std::numeric_limits<uint32_t>::max());
42static constexpr VertexIndex kInvalidVertexIndex(
43 std::numeric_limits<uint32_t>::max());
44static constexpr CornerIndex kInvalidCornerIndex(
45 std::numeric_limits<uint32_t>::max());
46static constexpr FaceIndex kInvalidFaceIndex(
47 std::numeric_limits<uint32_t>::max());
48
49// TODO(ostava): Add strongly typed indices for attribute id and unique
50// attribute id.
51
52} // namespace draco
53
54#endif // DRACO_ATTRIBUTES_GEOMETRY_INDICES_H_
#define DEFINE_NEW_DRACO_INDEX_TYPE(value_type, name)
Definition draco_index_type.h:59
Definition attribute_octahedron_transform.cc:21
VertexIndex VertexIndex
Definition mesh_edgebreaker_encoder_impl.cc:37
CornerIndex CornerIndex
Definition mesh_edgebreaker_encoder_impl.cc:35
FaceIndex FaceIndex
Definition mesh_edgebreaker_encoder_impl.cc:36