453 Commits

Author SHA1 Message Date
Luke Street 49952a97b5 Setup shared/static zlib/png 2026-05-12 21:54:30 -06:00
Pieter-Jan Briers f7f3d52cfc Texture loading fixes (#170)
* Implement PNG & arb texture replacements

Fixes #119

For arb textures it's just making sure the file parsing can handle them. Idk if we need to do something special for it.

* Allow non-mipmapped textures to be replaced by mipmapped textures

Some of Henriko's textures (like the cuttable grass) rely on this.

The mipmap bool is no longer part of the runtime key.

* Make texture name the texture replacement key

Might as well? Helped me debug some stuff

* Oops that broke it bad

* libpng instead of spng

* I did it again

* Update libpng fetch

* Add zlib fetch

* Forgot to set the hash

* Add zlib redirect

* Add INCLUDE_DIR(S) to redirect

* Prefer shared for libpng

* Set CMAKE_FIND_PACKAGE_TARGETS_GLOBAL

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-05-12 20:32:43 -06:00
Pieter-Jan Briers 974d11dfe7 Log basic system information on startup (#178)
* Log various system information on startup

CPU model, memory, that kinda stuff.

* Use WRL ComPtr<T>

* Use DXGI to list GPUs on Windows

* Compile fix oops

* macOS system info

* Linux impl

* Add comment linking to the microsoft example I used

* How did this compile before?
2026-05-12 14:09:44 -06:00
Ahmad Abdallah fb3cd81c23 Add per-field GXInitTexObj setters and user-data accessors (#177) 2026-05-12 14:09:07 -06:00
Phillip Stephens dad74e48d2 Cleanup clang-tidy warnings, attempt to fix 4GB file bug (#175)
* Cleanup clang-tidy warnings, attempt to fix 4GB file bug

* Add ranges header
2026-05-12 14:02:26 -06:00
Luke Street ff9ca7170c Fix duplicate MTLLogStateDescriptor on macOS 15+ 2026-05-12 14:00:19 -06:00
Phillip Stephens 4a801aa35b Disable digital trigger emulation if digital triggers are set 2026-05-11 22:52:57 -07:00
Luke Street 0e6f08301a PAD: Map Z to R1/RB, don't map TL/TR 2026-05-11 23:47:22 -06:00
Phillip Stephens 81822aeffa Don't emulate triggers on gamecube-style controllers by default 2026-05-11 21:42:04 -07:00
Phillip Stephens d172f88dc3 Fix XBox 360 and One controller mappings (I hope) 2026-05-11 21:38:00 -07:00
Luke Street 83cdfb40f6 Fix Windows Unicode paths in texture_replacement 2026-05-11 22:06:14 -06:00
Mart 62e55287ea feat(rmlui): add user-configurable ui scale multiplier (#169)
* feat(rmlui): add user-configurable ui scale multiplier

Expose `aurora::rmlui::set_ui_scale` / `get_ui_scale` so consumers can
multiply the RmlUi context's density-independent pixel ratio without
having to fight `sync_context_metrics` resetting the value every render.

Default scale is 1.0 (no behavior change); the multiplier is clamped to
[0.25, 4.0] and applied inside `sync_context_metrics`, so existing
display-scale syncing continues to work for HiDPI / display-change
events.

* refactor: specific scale vs multiplier
2026-05-11 19:50:05 -06:00
Luke Street 5fa8ac685b Fix SDL_Renderer ImGui scaling 2026-05-11 19:48:15 -06:00
Pieter-Jan Briers 72ae17cc74 Log when texture replacements are active (#173)
* Log when texture replacements are active

Figured this might be prudent if we're going to be looking at crash logs

* Fix texture replacement mip load failure logging

Wouldn't log if any mips have already been loaded, which doesn't make much sense.
2026-05-11 07:19:12 -06:00
Luke Street 211bfb00a8 Wait until window receives focus to respect pauseOnFocusLost 2026-05-10 22:08:04 -06:00
Lurs 9315919091 Fix atlas crash in dusk (#168) 2026-05-10 17:22:44 -06:00
qwertyquerty e9847e8e01 fix kb (#171) 2026-05-10 17:21:41 -06:00
Luke Street aff6edf9de Use freetype mirror 2026-05-10 17:21:03 -06:00
Luke Street 404c452a79 Only release surface on minimize on Android/Apple 2026-05-10 17:09:11 -06:00
Luke Street 449e7bf9b9 Quantize & constant fold alpha comparisons 2026-05-10 12:40:31 -06:00
Julio Sanz 8444ecdc64 added support for symlinks in linux (#167) 2026-05-10 10:55:10 -06:00
Pieter-Jan Briers d61a1824ac Fix handling of Unicode paths on Windows (#166)
* Fix handling of Unicode paths on Windows

I love C++

* Reduce the amount of reinterpret_casts

* Okay? Don't commit the file CLion? Why not?

* Fix texture replacements too
2026-05-10 10:54:59 -06:00
Luke Street 22c2e5e55a Add shims for macOS 14 support 2026-05-10 00:27:54 -06:00
Luke Street 398054316e Revert "Prefer Vulkan over D3D12"
This reverts commit 63606a4326.
2026-05-10 00:00:06 -06:00
Luke Street f4ea5f31fa Don't create texture_dumps unless enabled 2026-05-09 23:49:11 -06:00