GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
mesh_indices.h
Go to the documentation of this file.
1// Copyright 2022 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#ifdef DRACO_TRANSCODER_SUPPORTED
16#ifndef DRACO_MESH_MESH_INDICES_H_
17#define DRACO_MESH_MESH_INDICES_H_
18
19#include <inttypes.h>
20
21#include <limits>
22
24
25namespace draco {
26
27// Index of a mesh feature ID set.
28DEFINE_NEW_DRACO_INDEX_TYPE(uint32_t, MeshFeaturesIndex)
29
30// Constants denoting invalid indices.
31static constexpr MeshFeaturesIndex kInvalidMeshFeaturesIndex(
32 std::numeric_limits<uint32_t>::max());
33
34} // namespace draco
35
36#endif // DRACO_MESH_MESH_INDICES_H_
37#endif // DRACO_TRANSCODER_SUPPORTED
#define DEFINE_NEW_DRACO_INDEX_TYPE(value_type, name)
Definition draco_index_type.h:59
Definition attribute_octahedron_transform.cc:21