gwnavgeneration/boundary/boundarytypes.h Source File
Go to the documentation of this file.
12 #ifndef GwNavGen_BoundaryTypes_H
13 #define GwNavGen_BoundaryTypes_H
23 typedef Vec2i BoundaryPos;
24 typedef Box2i BoundaryBox;
27 typedef KyInt32 NavBoundaryCoord;
28 typedef Vec2i NavBoundaryPos;
32 typedef Vec2i NavPixelPos;
33 typedef Vec3i NavPixelPos3d;
36 typedef KyInt32 ExclBoundaryCoord;
37 typedef Vec2i ExclBoundaryPos;
38 typedef Vec3i ExclBoundaryVertexPos;
42 BoundaryEdgeType_CellLink_East = 0,
43 BoundaryEdgeType_CellLink_North = 1,
44 BoundaryEdgeType_CellLink_West = 2,
45 BoundaryEdgeType_CellLink_South = 3,
46 BoundaryEdgeType_FloorLink = 4,
47 BoundaryEdgeType_ConnexLink = 5,
48 BoundaryEdgeType_Wall = 6,
49 BoundaryEdgeType_Hole = 7,
53 KY_INLINE
bool IsBoundaryEdgeOnFloorOrCellLink(BoundaryEdgeType type) {
return type < BoundaryEdgeType_ConnexLink; }
55 typedef KyInt32 BoundaryVertexStaticStatus;
56 static const BoundaryVertexStaticStatus BoundaryVertexStaticStatus_Dynamic = 0;
57 static const BoundaryVertexStaticStatus BoundaryVertexStaticStatus_Static = 1;
58 static const BoundaryVertexStaticStatus BoundaryVertexStaticStatus_Narrow = 2;
59 static const BoundaryVertexStaticStatus BoundaryVertexStaticStatus_FeatureDiscontinuity = 3;
61 typedef KyUInt32 BoundaryIsVisitedStatus;
62 static const BoundaryIsVisitedStatus BoundaryIsVisitedStatus_Unvisited = 0;
63 static const BoundaryIsVisitedStatus BoundaryIsVisitedStatus_Visited = 1;
64 static const BoundaryIsVisitedStatus BoundaryIsVisitedStatus_NoNeedToBeVisited = 2;
66 typedef KyUInt32 BoundaryPolylineCycleStatus;
67 static const BoundaryPolylineCycleStatus PolylineCycleStatus_NotCycle = 0;
68 static const BoundaryPolylineCycleStatus PolylineCycleStatus_Cycle = 1;
69 static const BoundaryPolylineCycleStatus PolylineCycleStatus_Unset =
KyUInt32MAXVAL;
72 static const BoundarySide BoundarySide_Left = 0;
73 static const BoundarySide BoundarySide_Right = 1;
77 static const ContourWinding ContourWinding_CCW = 0;
78 static const ContourWinding ContourWinding_CW = 1;
82 static const BoundaryOrder BoundaryOrder_Straight = 0;
83 static const BoundaryOrder BoundaryOrder_Reverse = 1;
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226