GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco_types.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_CORE_DRACO_TYPES_H_
16#define DRACO_CORE_DRACO_TYPES_H_
17
18#include <stdint.h>
19
20#include <string>
21
23
24namespace draco {
25
27 // Not a legal value for DataType. Used to indicate a field has not been set.
41};
42
43int32_t DataTypeLength(DataType dt);
44
45// Equivalent to std::is_integral for draco::DataType. Returns true for all
46// signed and unsigned integer types (including DT_BOOL). Returns false
47// otherwise.
49
50} // namespace draco
51
52#endif // DRACO_CORE_DRACO_TYPES_H_
Definition Database.hh:27
Definition attribute_octahedron_transform.cc:21
int32_t DataTypeLength(DataType dt)
Definition draco_types.cc:19
bool IsDataTypeIntegral(DataType dt)
Definition draco_types.cc:44
DataType
Definition draco_types.h:26
@ DT_TYPES_COUNT
Definition draco_types.h:40
@ DT_INT32
Definition draco_types.h:33
@ DT_INT64
Definition draco_types.h:35
@ DT_INT8
Definition draco_types.h:29
@ DT_BOOL
Definition draco_types.h:39
@ DT_INVALID
Definition draco_types.h:28
@ DT_INT16
Definition draco_types.h:31
@ DT_UINT16
Definition draco_types.h:32
@ DT_UINT8
Definition draco_types.h:30
@ DT_FLOAT64
Definition draco_types.h:38
@ DT_FLOAT32
Definition draco_types.h:37
@ DT_UINT32
Definition draco_types.h:34
@ DT_UINT64
Definition draco_types.h:36