81 Commits

Author SHA1 Message Date
Graham Pentheny
151b2e24b7 Use an enum class rather than an old-style enum for sample partition type 2025-08-25 00:02:32 -04:00
Graham Pentheny
8b7e275d79 Removed more unused matrix parameters 2025-08-24 15:21:06 -04:00
Graham Pentheny
f529408d8d Removed more unused matrix parameters 2025-08-24 15:19:26 -04:00
Graham Pentheny
d9fc64af7d Removed more unused matrix parameters from UI drawing methods 2025-08-24 15:18:32 -04:00
Graham Pentheny
ff5a6052c1 Removed unnecessary matrix parameters from UI and overlay drawing methods 2025-08-24 15:16:18 -04:00
Graham Pentheny
e64932116a rename handleUpdate to update 2025-08-24 15:12:22 -04:00
Graham Pentheny
3ecd326e11 Renamed handleRender and handleRenderOverlay to render and renderOverlay 2025-08-24 15:11:04 -04:00
Graham Pentheny
5fc4886780 Switch static array definition to extern to prevent unused variable warnings 2025-08-22 01:39:14 -04:00
Graham Pentheny
192dc97b94 Rename "renderOverlay" to "drawOverlayUI" 2025-08-21 21:46:50 -04:00
Graham Pentheny
28871ed27c Cleanup some enum declarations 2025-08-07 15:18:48 -04:00
Graham Pentheny
2e3977426e Renamed tool methods 2025-08-07 15:10:40 -04:00
Graham Pentheny
6ebbb12684 renamed handleCommonSettings to drawCommonSettingsUI 2025-08-05 13:52:37 -04:00
Graham Pentheny
a899c3cb0f rename handleSettings to drawSettingsUI 2025-08-05 13:51:20 -04:00
Graham Pentheny
06ea1be2ae rename handleTools to drawToolsUI 2025-08-05 13:50:14 -04:00
Graham Pentheny
a97ce303b8 Rename handleToggle to onToggle 2025-08-05 13:49:20 -04:00
Graham Pentheny
67e4ddfe34 Rename handleDebugMode to drawDebugUI 2025-08-05 13:48:40 -04:00
Graham Pentheny
a68186daaf Rename handleClick to onClick 2025-08-05 13:47:46 -04:00
Graham Pentheny
af4e86f32f Rename handleStep to singleStep 2025-08-05 13:47:18 -04:00
Graham Pentheny
5cc17b8a39 rename handleMeshChanged to onMeshChanged 2025-08-05 13:46:30 -04:00
Graham Pentheny
a954d7e9f0 rename handleBuild to build 2025-08-05 13:46:01 -04:00
Graham Pentheny
13f61a5747 rename handleUpdate to update 2025-08-05 13:45:16 -04:00
Graham Pentheny
434299ec5b Rename handleRenderOverlay to renderOverlay 2025-08-05 13:44:15 -04:00
Graham Pentheny
efd1401b6b Rename handleRender to render 2025-08-05 13:40:47 -04:00
Graham Pentheny
065fd54c81 Use static arrays of strings for tool and display names 2025-08-04 15:54:35 -04:00
Graham Pentheny
c87a4b3056 Removed unnecessary build context setter 2025-07-22 01:02:41 -04:00
Graham Pentheny
c80b9b7b41 Removed unnecessary agentMaxClimb accessor 2025-07-22 01:01:06 -04:00
Graham Pentheny
a925189187 Removed unnecessary agentHeight accessor 2025-07-22 01:00:03 -04:00
Graham Pentheny
0cceb7fb92 Removed unnecessary agent radius accessor 2025-07-22 00:58:52 -04:00
Graham Pentheny
91064ae3e8 Removed unnecessary debug draw accessor 2025-07-22 00:56:27 -04:00
Graham Pentheny
375dd6f68d Removed unnecessary accessors for sample tool state 2025-07-22 00:54:07 -04:00
Graham Pentheny
abb3616893 Removed unnecessary accessor 2025-07-22 00:45:36 -04:00
Graham Pentheny
442c77f653 Removed unnecessary navMeshDrawFlags accessors 2025-07-22 00:43:38 -04:00
Graham Pentheny
427c0428b9 Removed unnecessary accessor for nav mesh query 2025-07-21 01:20:23 -04:00
Graham Pentheny
6331eda278 Remove unnecessary accessor for navmesh field 2025-07-21 01:18:34 -04:00
Graham Pentheny
b1622e4656 Un-virtualized accessors that didn't need to be virtual 2025-07-21 01:12:33 -04:00
Graham Pentheny
8c75eeed3c Removed unnecessary accessor for inputGeometry 2025-07-21 01:12:19 -04:00
Graham Pentheny
a94dee954d More code cleanup
# Conflicts:
#	RecastDemo/Include/InputGeom.h
#	RecastDemo/Include/SampleInterfaces.h
2025-07-19 11:53:01 -04:00
Graham Pentheny
d534b4dc14 WIP DearImGui conversion 2025-07-12 15:02:54 -04:00
Graham Pentheny
1d40e3b7ab Rename parameter names for Sample::handleClick 2025-06-02 23:34:20 -04:00
Graham Pentheny
8a6c7ed8e1 removing hungarian notation from sample class field names 2025-05-30 01:58:52 -04:00
Graham Pentheny
6a92cd97f6 clang-format Sample 2025-05-23 00:08:54 -04:00
Graham Pentheny
cc7243eeee Inline field initializers in Sample class 2025-05-23 00:06:29 -04:00
Graham Pentheny
a1d3fe8086 convert SampleToolType to enum class 2025-03-31 01:02:50 -04:00
Graham Pentheny
ad6b1ec2c6 Some better names for fields in Sample class 2025-03-31 00:26:19 -04:00
Graham Pentheny
b82953c2fc Consolidate forward-declarations in Sample.h 2025-03-29 14:58:21 -04:00
Graham Pentheny
f1e7192147 Modernize rule-of-three for Sample.h 2025-03-29 14:06:14 -04:00
Graham Pentheny
877547f326 Remove redundant code in Sample.h and add some consts 2025-03-29 14:05:58 -04:00
Graham Pentheny
5111139558 Fixes for many low-severity compiler warnings (#576)
* Fixes for many low-severity compiler warnings

Mostly a lot of pedantic things like end-of-file newlines and commas on the last enum value.  However some fixes like the weak v-tables warnings fixes might help with code gen.  It's unclear if the linker is able to elide multiple copies of the same type's v-table in different translation units, (sometimes it can) but these fixes ensure we don't have to rely on it.
2022-11-11 21:03:03 -05:00
Aurelien Rainone
4988ecbaf0 RecastDemo: add Load & Save buttons for SoloMesh Sample, and fix warnings (#258)
* Implement saveAll loadAll for Sample_SoloMesh

 - Solo mesh sample is loaded and saved as a tiled mesh containing
   an unique tile, so as to remain compatible with tiled mesh
 - navmesh is saved to/loaded from `solo_navmesh.bin` binary file
 - add and connect the corresponding 'Save/Load' GUI elements

* Fix `implit-fallthrough` gcc warnings

On linux with gcc 7.2.0+ and all warnings treated as errors,
implicit fallthroughs in case statements are considered as errors.
If the comment just below the next `case` or `default` matches
various strings, one of which is `falls through` the fallthrough
is then considered explicit.
2018-01-05 12:38:53 +01:00
Domenico Albani
03eb2f92f3 Make RecastDemo colors more meaningful (#254)
Implement a SampleDebugDraw which will color area types meaningfully, for example
color water as blue, grass as green and so on.
2017-02-02 20:27:43 +01:00