| OpenSubdiv

Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1//
2// Copyright 2014 DreamWorks Animation LLC.
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7
8#ifndef OPENSUBDIV3_FAR_TYPES_H
9#define OPENSUBDIV3_FAR_TYPES_H
10
11#include "../version.h"
12
13#include "../vtr/types.h"
14
15 namespace OpenSubdiv {
16 namespace OPENSUBDIV_VERSION {
17
18 namespace Far {
19
20//
21// Typedefs for indices that are inherited from the Vtr level -- eventually
22// these primitive Vtr types may be declared at a lower, more public level.
23//
24 typedef Vtr::Index Index;
25 typedef Vtr::LocalIndex LocalIndex;
26
27 typedef Vtr::IndexArray IndexArray;
28 typedef Vtr::LocalIndexArray LocalIndexArray;
29
30 typedef Vtr::ConstIndexArray ConstIndexArray;
31 typedef Vtr::ConstLocalIndexArray ConstLocalIndexArray;
32
33 inline bool IndexIsValid(Index index) { return Vtr::IndexIsValid(index); }
34
35 static const Index INDEX_INVALID = Vtr::INDEX_INVALID;
36 static const int VALENCE_LIMIT = Vtr::VALENCE_LIMIT;
37
38} // end namespace Far
39
40} // end namespace OPENSUBDIV_VERSION
41 using namespace OPENSUBDIV_VERSION;
42} // end namespace OpenSubdiv
43
44#endif /* OPENSUBDIV3_FAR_TYPES_H */
OpenSubdiv
Definition limits.h:15
OpenSubdiv::OPENSUBDIV_VERSION
Definition limits.h:16
OpenSubdiv::OPENSUBDIV_VERSION::Far
Definition refinerSurfaceFactory.h:19
OpenSubdiv::OPENSUBDIV_VERSION::Far::LocalIndex
Vtr::LocalIndex LocalIndex
Definition types.h:25
OpenSubdiv::OPENSUBDIV_VERSION::Far::LocalIndexArray
Vtr::LocalIndexArray LocalIndexArray
Definition types.h:28
OpenSubdiv::OPENSUBDIV_VERSION::Far::ConstIndexArray
Vtr::ConstIndexArray ConstIndexArray
Definition types.h:30
OpenSubdiv::OPENSUBDIV_VERSION::Far::ConstLocalIndexArray
Vtr::ConstLocalIndexArray ConstLocalIndexArray
Definition types.h:31
OpenSubdiv::OPENSUBDIV_VERSION::Far::IndexArray
Vtr::IndexArray IndexArray
Definition types.h:27
OpenSubdiv::OPENSUBDIV_VERSION::Far::IndexIsValid
bool IndexIsValid(Index index)
Definition types.h:33
OpenSubdiv::OPENSUBDIV_VERSION::Far::Index
Vtr::Index Index
Definition types.h:24
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::ConstLocalIndexArray
ConstArray< LocalIndex > ConstLocalIndexArray
Definition types.h:66
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::LocalIndexArray
Array< LocalIndex > LocalIndexArray
Definition types.h:65
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::Index
int Index
Definition types.h:37
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::ConstIndexArray
ConstArray< Index > ConstIndexArray
Definition types.h:63
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::LocalIndex
unsigned short LocalIndex
Definition types.h:49
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::IndexIsValid
bool IndexIsValid(Index index)
Definition types.h:41
OpenSubdiv::OPENSUBDIV_VERSION::Vtr::IndexArray
Array< Index > IndexArray
Definition types.h:62
types.h