Add OpenMW commits up to 19 Feb 2020
# Conflicts: # apps/openmw/mwworld/scene.cpppull/558/head
commit
85fb1d1a0b
@ -1,35 +0,0 @@
|
||||
#ifndef CSV_RENDER_ELEMENTS_H
|
||||
#define CSV_RENDER_ELEMENTS_H
|
||||
|
||||
namespace CSVRender
|
||||
{
|
||||
|
||||
/// Node masks used on the OSG scene graph in OpenMW-CS.
|
||||
/// @note See the respective file in OpenMW (apps/openmw/mwrender/vismask.hpp)
|
||||
/// for general usage hints about node masks.
|
||||
/// @copydoc MWRender::VisMask
|
||||
enum Mask
|
||||
{
|
||||
// internal use within NifLoader, do not change
|
||||
Mask_UpdateVisitor = 0x1,
|
||||
|
||||
// elements that are part of the actual scene
|
||||
Mask_Reference = 0x2,
|
||||
Mask_Pathgrid = 0x4,
|
||||
Mask_Water = 0x8,
|
||||
Mask_Fog = 0x10,
|
||||
Mask_Terrain = 0x20,
|
||||
|
||||
// used within models
|
||||
Mask_ParticleSystem = 0x100,
|
||||
|
||||
Mask_Lighting = 0x200,
|
||||
|
||||
// control elements
|
||||
Mask_CellMarker = 0x10000,
|
||||
Mask_CellArrow = 0x20000,
|
||||
Mask_CellBorder = 0x40000
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,43 @@
|
||||
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_STATUS_H
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_STATUS_H
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
enum class Status
|
||||
{
|
||||
Success,
|
||||
NavMeshNotFound,
|
||||
StartPolygonNotFound,
|
||||
EndPolygonNotFound,
|
||||
MoveAlongSurfaceFailed,
|
||||
FindPathOverPolygonsFailed,
|
||||
GetPolyHeightFailed,
|
||||
InitNavMeshQueryFailed,
|
||||
};
|
||||
|
||||
constexpr const char* getMessage(Status value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case Status::Success:
|
||||
return "success";
|
||||
case Status::NavMeshNotFound:
|
||||
return "navmesh is not found";
|
||||
case Status::StartPolygonNotFound:
|
||||
return "polygon for start position is not found on navmesh";
|
||||
case Status::EndPolygonNotFound:
|
||||
return "polygon for end position is not found on navmesh";
|
||||
case Status::MoveAlongSurfaceFailed:
|
||||
return "move along surface on navmesh is failed";
|
||||
case Status::FindPathOverPolygonsFailed:
|
||||
return "path over navmesh polygons is not found";
|
||||
case Status::GetPolyHeightFailed:
|
||||
return "failed to get polygon height";
|
||||
case Status::InitNavMeshQueryFailed:
|
||||
return "failed to init navmesh query";
|
||||
}
|
||||
return "unknown error";
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue