Commit Graph

111 Commits

Author SHA1 Message Date
Graham Pentheny
bfd963893e Split out mesh data into its own struct 2025-08-06 11:28:58 -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
3a9c6ab3b3 Added RightAlignText helper function 2025-08-05 13:36:33 -04:00
Graham Pentheny
708a7b68ac Move sample selection before input mesh selection again 2025-08-05 13:27:18 -04:00
Graham Pentheny
06e49c3be4 Fixed pointer offset caused by style settings 2025-08-04 17:12:19 -04:00
Graham Pentheny
7d6486d30a Bigger window dimensions 2025-08-04 16:50:00 -04:00
Graham Pentheny
8428cd1525 Revive Test case selection UI 2025-08-04 12:17:09 -04:00
Graham Pentheny
e2ff34d7a8 Simplify some frame time delay logic 2025-08-04 12:16:35 -04:00
Graham Pentheny
fb5e567ace Consolidate some constants 2025-08-03 19:16:38 -04:00
Graham Pentheny
12ce3c2368 Removed unnecessary accessors 2025-07-29 23:16:14 -04:00
Graham Pentheny
50381dd2a6 Fixed UI window sizing, positioning, resizability 2025-07-29 02:09:59 -04:00
Graham Pentheny
27e72712f6 Simplify some UI rendering conditionals 2025-07-29 02:03:27 -04:00
Graham Pentheny
0d05f532ce Enable high-DPI support 2025-07-29 01:56:23 -04:00
Graham Pentheny
fc32610aa5 renamed some variables 2025-07-29 00:22:35 -04:00
Graham Pentheny
32d6e1640b Remove some usings since they're a bit unnecessary 2025-07-29 00:19:44 -04:00
Graham Pentheny
c87a4b3056 Removed unnecessary build context setter 2025-07-22 01:02:41 -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
cbbbad99a1 Convert file IO to use FileIO class in SampleInterfaces.h
de-duping a lot of standard file IO
2025-07-19 11:47:13 -04:00
Graham Pentheny
95a7b45c32 More WIP DearImGUI conversion 2025-07-13 12:43:10 -04:00
Graham Pentheny
d534b4dc14 WIP DearImGui conversion 2025-07-12 15:02:54 -04:00
Graham Pentheny
6b906538dc WIP DearImGui conversion 2025-07-10 11:11:54 -04:00
Graham Pentheny
d1e513aeaf Remove MeshLoaderObj class. Replace with parseObjModel function 2025-07-07 00:54:57 -04:00
Graham Pentheny
758fb8e5d5 Silencing more value conversion warnings 2025-06-28 15:00:44 -04:00
Graham Pentheny
d647ba4305 Fixed compilation warnings treated as errors on Windows 2025-06-28 14:44:19 -04:00
Graham Pentheny
b5d961d4a1 Simplify scanDirectory functions
always append, and let the caller clear the vector themselves if they want.
2025-06-04 00:54:55 -04:00
Graham Pentheny
1d40e3b7ab Rename parameter names for Sample::handleClick 2025-06-02 23:34:20 -04:00
Graham Pentheny
67421b6091 cleanup mesh loading 2025-05-30 01:37:05 -04:00
Graham Pentheny
8d5ec7d4c7 Clean up and format main.cpp. Move some settings to the top-level 2025-05-19 23:23:20 -04:00
Graham Pentheny
66de897309 Move app state in main.cpp into a struct
In anticipation of moving to SDL3 where this is the pattern.
2025-05-19 23:19:25 -04:00
Graham Pentheny
8a7d20b842 More main.cpp formatting 2025-04-27 16:45:23 -04:00
Graham Pentheny
1dbb74dc5d Removed presentation mode flag from demo project 2025-04-27 15:50:35 -04:00
Graham Pentheny
578fb5fd95 reformatted main.cpp 2025-04-27 15:45:35 -04:00
Graham Pentheny
202c07e37a Removed debug sample 2025-04-26 00:32:27 -04:00
Graham Pentheny
11bdd85f77 remove trailing whitespace 2025-04-09 01:33:07 -04:00
Graham Pentheny
d3b058404f Cleanup includes in main.cpp 2025-03-29 14:06:32 -04:00
listenwind
1f0ce60544 feat: add window resizing support (#746)
- Add SDL_WINDOW_RESIZABLE flag to enable window resizing
- Handle SDL_WINDOWEVENT_RESIZED event to update window dimensions
- Update OpenGL viewport and projection matrix when window is resized

This change allows users to resize the application window while maintaining
proper aspect ratio and rendering.
2024-12-30 23:29:37 -05:00
Graham Pentheny
b43c82c808 Removed _USE_MATH_DEFINES directive (#596)
Since none of the `M_` prefixed constants are used anywhere in the code, this is unnecessary.  It's also Windows-specific, so these non-standard defines shouldn't be used anyway.

Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-170
2022-12-29 15:09:01 -05: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
Graham Pentheny
0d1cbd3d67 Don't explicitly create a GL context since SDL_CreateWindowAndRenderer does it internally.
Having two GL contexts causes rendering problems on Ubuntu.  Fixes #521
2022-10-25 23:18:11 -04:00