Recast: setup project for using shared sdk code

Allows Recast editor to use shared SDK code.
This commit is contained in:
Kawe Mazidjatari 2024-07-06 09:39:37 +02:00
parent fa352344f3
commit d9c6ec7786
2 changed files with 25 additions and 0 deletions

View File

@ -17,9 +17,16 @@
#include <fstream>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <vector>
#include <algorithm>
// Required for shared SDK code.
#include <regex>
#include <mutex>
#include "common/experimental.h"
#include "thirdparty/fastlz/fastlz.h"
@ -47,4 +54,17 @@
#include "NavEditor/Include/imgui.h"
#include "NavEditor/Include/imguiRenderGL.h"
// SDK types
#include "common/sdkdefs.h"
typedef uint8_t byte;
typedef int8_t int8;
typedef uint8_t uint8;
typedef int16_t int16;
typedef uint16_t uint16;
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
#endif // DTPCH_H

View File

@ -53,4 +53,9 @@ rdAssertFailFunc* rdAssertFailGetCustom();
#endif
// This is required to make the navmesh editor work with external code.
#ifndef Assert
# define Assert rdAssert
#endif // !Assert
#endif // RECASTDETOURASSERT_H