Lagrange
attribute_names.h
1/*
2 * Copyright 2023 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12#pragma once
13
14#include <string_view>
15
16namespace lagrange {
17
18// Valid attribute semantic properties are listed below.
19// Attribute semantic property names can be in the form [semantic]_[set_index], e.g. texcoord_0,
20// texcoord_1, etc.
21
23{
27 static constexpr std::string_view normal = "normal";
28
32 static constexpr std::string_view color = "color";
33
37 static constexpr std::string_view texcoord = "texcoord";
38
42 static constexpr std::string_view tangent = "tangent";
43
47 static constexpr std::string_view bitangent = "bitangent";
48
52 static constexpr std::string_view material_id = "material_id";
53
57 static constexpr std::string_view object_id = "object_id";
58
63 static constexpr std::string_view weight = "weight";
64
69 static constexpr std::string_view indexed_weight = "indexed_weight";
70
75 static constexpr std::string_view indexed_joint = "indexed_joint";
76};
77
78} // namespace lagrange
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Definition: attribute_names.h:23
static constexpr std::string_view tangent
Tangent.
Definition: attribute_names.h:42
static constexpr std::string_view bitangent
Bitangent.
Definition: attribute_names.h:47
static constexpr std::string_view indexed_weight
Indexed skinning weights, with a fixed number (typically 4) specified for each vertex.
Definition: attribute_names.h:69
static constexpr std::string_view normal
Normal.
Definition: attribute_names.h:27
static constexpr std::string_view color
Color.
Definition: attribute_names.h:32
static constexpr std::string_view material_id
Material ID.
Definition: attribute_names.h:52
static constexpr std::string_view weight
Skinning weights, with all joints specified for each vertex.
Definition: attribute_names.h:63
static constexpr std::string_view indexed_joint
Indexed skinning index, with a fixed number (typically 4) specified for each vertex.
Definition: attribute_names.h:75
static constexpr std::string_view texcoord
Texture coordinates.
Definition: attribute_names.h:37
static constexpr std::string_view object_id
Object ID (in obj files).
Definition: attribute_names.h:57