r5sdk/r5dev/game/shared/ai_utility_shared.h
Kawe Mazidjatari 530b645a4d Additional AI Network render optimizations
* Make box's mins and maxs static const.
* Use SSE to pack 4 indices into 1 128bit register, and shuffle to prevent duplication. Only 2 indices are used at the moment.
2022-10-11 01:20:59 +02:00

34 lines
1.1 KiB
C++

#ifndef AI_UTILITY_SHARED_H
#define AI_UTILITY_SHARED_H
//------------------------------------------------------------------------------
// Forward declarations
//------------------------------------------------------------------------------
class dtNavMesh;
class CAI_Network;
class Vector3D;
class Color;
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
class CAI_Utility
{
public:
CAI_Utility(void);
void DrawAIScriptNetwork(const CAI_Network* pAINetwork) const;
void DrawNavMeshBVTree(dtNavMesh* mesh = nullptr) const;
void DrawNavMeshPortals(dtNavMesh* mesh = nullptr) const;
void DrawNavMeshPolys(dtNavMesh* mesh = nullptr) const;
void DrawNavMeshPolyBoundaries(dtNavMesh* mesh = nullptr) const;
__m128i PackNodeLink(int32_t a, int32_t b, int32_t c = 0, int32_t d = 0) const;
int64_t GetNearestNodeToPos(const CAI_Network* pAINetwork, const Vector3D* vec) const;
private:
Color m_BoxColor;
Color m_LinkColor;
};
extern CAI_Utility* g_pAIUtility;
#endif // AI_UTILITY_SHARED_H