7 Commits
Author SHA1 Message Date
MrTheShyandClaude Opus 4.7 ebdb6c313d Cache D3D state objects + skip-if-equal cbuffer/bind in Render
Adds per-context lastXxxStateKey + lastBlendFactor tracking so we skip
redundant ID3D11* CreateState/Bind cycles. Pre-allocates Clear() state
objects to avoid 3 Create + 3 Release per Clear call. Also adds
lastColour/lastAlphaTestRef/last*TextureIdx caches to skip cbuffer
uploads when values unchanged from last bind.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 18:12:32 +02:00
MrTheShy 3dbe479606 Add SDL3 input bridge + N-player splitscreen viewport API
- Input: SDL3-backed PollPadAsXInput bridges DInput/HIDAPI gamepads
  past the XInput 4-pad cap. Exposed via INP_SdlBridge for use by
  callers that need to enumerate all connected pads.
- Render: VIEWPORT_TYPE_GRID_CELL enum + StateSetViewportRect(x,y,w,h)
  for parametric N-player cell rects. The pre-built lib's enum-based
  StateSetViewport leaves the D3D viewport stack-uninitialized in its
  default case, so the grid-cell path takes a direct rect to avoid
  the 0xCC fill -> RSSetViewports validation error.
- CMake: SDL3 static link wiring + Windows build helpers
  (build_libs.bat, configure_only.bat).

Used by: MrTheShy/MinecraftConsoles auth branch (8-player splitscreen).
2026-05-03 00:11:50 +02:00
Alex 8fb036f6d6 Fix PNG text section not being written to file (#22) 2026-04-28 02:43:48 -04:00
Patoke f567d33ccb fix(input): git, am i cooked?
mixed up left thumb and right thumbs on SetJoypadValues
2026-04-21 20:52:10 -04:00
Patoke 1f3759d75c chore: use standard Windows64 platform name for Windows_Libs 2026-04-21 02:52:42 -04:00
Patoke f1425f0494 fix: remove __uint64 typedef and use the "unsigned __int64" primitive 2026-04-21 02:38:48 -04:00
gsds e0ae7b1ec1 feat: better cmake support (#21)
* feat: CMakeSettings.json

* chore: remove visual studio stuff
chore: move .clang-format to main directory

* feat: new file structure, easier to implement as a submodule within existing projects

* chore: we actually include some code now...

* chore: remove prebuilt libraries (oops)

* feat: new shader building script using cmake

* chore: add debug postfix specifier

* fix: forgot that windows builds use 4J_Render_PC for the render library

* fix: didn't add the output directory (where shaders are saved to) to the include directories of 4J_Render
2026-04-21 02:07:59 -04:00