Debian Codegraph @

Integration.md

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 # Integration
2
3 There are a few ways to integrate Recast and Detour into your project. Source integration is the most popular and most flexible, and is what the project was designed for from the beginning.
4
5 ## Source Integration
6
7 It is recommended to add the source directories `DebugUtils`, `Detour`, `DetourCrowd`, `DetourTileCache`, and `Recast` directly into your project depending on which parts of the project you need. For example your level building tool could include `DebugUtils`, `Recast`, and `Detour`, and your game runtime could just include `Detour`.
8
9 - *Recast*: Core navmesh building system.
10 - *Detour*: Runtime navmesh interface and query system
11 - *DetourCrowd*: Runtime movement, obstacle avoidance and crowd sim systems
12 - *DetourTileCache*: Runtime navmesh dynamic obstacle and re-baking system
13
14 ## Install through vcpkg
15
16 If you are using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager you can alternatively download and install Recast with:
17
18 ```
19 vcpkg install recast
20 ```
21
22 # DLL and C API exports
23
24 Recast does not currently provide a stable C API for use in a DLL or as bindings for another language. The design of Recast currently relies on some C++ features, so providing a stable API is not possible without a few large changes to Recast. There are a number of projects that offer unofficial language bindings for Recast, but official support for a C API is currently on our [Roadmap](Roadmap.md).
25
26 # Preprocessor defines
27
28 `RC_DISABLE_ASSERTS`: Disables assertion macros. Useful for release builds that need to maximize performance.
29
30 `DT_POLYREF64`: Use 64 bit (rather than 32 bit) polygon ID references. Generally not needed, but sometimes useful for very large worlds.
31
32 `DT_VIRTUAL_QUERYFILTER`: Define this if you plan to sub-class `dtQueryFilter`. Enables the virtual destructor in `dtQueryFilter`