Commit graph

149 commits

Author SHA1 Message Date
Paul Holden
fd40f033f4 Tidy attribute names. 2023-10-25 23:07:32 +01:00
Paul Holden
b8efdd2de6 Migrate to WebGL 2. 2023-10-24 09:08:59 +01:00
Paul Holden
b3debbec26 Always set alpha to 1 when blitting the backbuffer to the canvas.
This fixes https://github.com/hulkholden/n64js/issues/14.
2023-10-23 08:27:42 +01:00
Paul Holden
1697c372cb Add an input element for each control. 2023-10-19 23:23:03 +01:00
Paul Holden
5747fb676b Fix controller modal structure. 2023-10-19 22:53:47 +01:00
Paul Holden
5c0eb86534 Add ControllerConfig class. 2023-10-19 09:16:31 +01:00
Paul Holden
cd7ea3a995 Add a controller modal. 2023-10-18 08:49:35 +01:00
Paul Holden
ac11df1542 Format 2023-10-18 08:49:35 +01:00
Paul Holden
e3f20c4c0f Add a controller button. 2023-10-17 22:44:51 +01:00
Paul Holden
6a4513b918 Tidy how the debug UI is toggled, and link lil-gui visibility. 2023-10-15 13:52:56 +01:00
Paul Holden
f1df72ece2 Timeline improvements:
* Record more events
* Separate track for AI DMAs
2023-10-14 15:52:38 +01:00
Paul Holden
0f9ba9f52c Flesh out timeline UI. 2023-10-14 13:30:17 +01:00
Paul Holden
9dffafdbbe Fix RSP scalar/vector/task tabs. 2023-10-04 00:01:27 +01:00
Paul Holden
6b1c9b2b2d Rename Textures tab to Tiles. 2023-10-02 23:32:08 +01:00
Paul Holden
c397f34ac3 Add bi class to icons. 2023-09-30 22:33:04 +01:00
Paul Holden
a1d21ee68a #cpu0-status and #rsp-status are no longer used. 2023-09-29 09:00:22 +01:00
Paul Holden
97a2021517 Tidy cpu0 status table. 2023-09-29 08:51:33 +01:00
Paul Holden
eb5203f812 Define the RSP status table in HTML and just update the corresponding elements. 2023-09-29 00:12:22 +01:00
Paul Holden
e8404890c6 Clean up some of the text. 2023-09-28 23:46:07 +01:00
Paul Holden
72531650f6 Format 2023-09-28 09:14:43 +01:00
Paul Holden
63761c76d2 Move status to README. 2023-09-28 09:04:54 +01:00
Paul Holden
cbaa565aa0 Styling fixes. 2023-09-28 08:41:05 +01:00
Paul Holden
832c43f80c Add a theme toggle button. 2023-09-28 00:31:33 +01:00
Paul Holden
ac30b332fe Fix DisplayList tabs. 2023-09-27 23:46:32 +01:00
Paul Holden
75dd085595 Migrate to bootstrap 5.3.2.
This adds dark/light theme support (still a work in progress).
2023-09-27 23:42:58 +01:00
Paul Holden
ccd8ee6064 Serve minified version. 2023-09-26 09:10:42 +01:00
Paul Holden
ffa3011bd3 Add some debug options via lil-gui. 2023-09-25 23:50:41 +01:00
Paul Holden
131a1102f4 Explicitly init CPU and RSP from n64.js so it becomes the only entry point. 2023-09-24 23:04:24 +01:00
Paul Holden
3b172cdf39 Add fullscreen support. 2023-09-24 21:08:16 +01:00
Paul Holden
79b63e9958 Simplify screen->device transforms.
Viewports still aren't implemented correcty but the new code is a lot simpler and now supports canvas scaling.
2023-09-14 22:56:40 +01:00
Paul Holden
b90eef6171 Update info. 2023-09-09 22:20:22 +01:00
Paul Holden
ff42adbe65 Add a tab for RSP task state. 2023-09-05 08:23:18 +01:00
Paul Holden
db40a0e037 Show RSP registers. 2023-09-04 22:51:38 +01:00
Paul Holden
b09f0cf66c Wrap up lastPC in CPUDebugState. 2023-09-04 20:45:35 +01:00
Paul Holden
706e923e6f Stub out RSP tab. 2023-09-04 08:42:46 +01:00
Paul Holden
62be5f8185 Rename Debug tab to CPU. 2023-09-04 08:25:53 +01:00
Paul Holden
e468421115 Appy the uv scaling in the fragment shader.
This shouldn't change anything yet (a bit slower) but it makes it possible to do shift/mask/clamp on a per-pixel basis.
2023-09-01 09:17:12 +01:00
Paul Holden
7a66b8e33f Add support for tex1. 2023-08-30 22:26:44 +01:00
Paul Holden
3a593537d3 Make the alpha threshold a uniform. 2023-08-28 22:55:38 +01:00
Paul Holden
7caeb3df94 Update Status. 2023-08-28 16:36:13 +01:00
Paul Holden
032502897e Stub out RSP. 2023-07-31 08:48:34 +01:00
Paul Holden
b921414899 Add MD5 support, based on https://github.com/blueimp/JavaScript-MD5.
I've modified this to take ArrayBuffers rather than raw strings, which avoids a lot of character encoding pain.
2023-07-08 09:37:35 +01:00
Paul Holden
3a10c8f3ff Export functions directly from hle.js. 2023-06-21 21:38:39 +01:00
Paul Holden
8c68e9fb72 Export functions directly from disassemble.js. 2023-06-21 21:15:19 +01:00
Paul Holden
5b8b8496da Only import the entry points. 2023-06-21 09:03:51 +01:00
Paul Holden
2436f3fc22 Tidy debugger toggling a bit. 2023-06-19 09:06:14 +01:00
Paul Holden
697d619f44 Export UI as a class. 2023-06-18 10:14:52 +01:00
Paul Holden
b68df89bf7 Implement alert using a template. 2023-06-18 09:59:52 +01:00
Paul Holden
cc5f41522f Extract some functions to ui.js. 2023-06-18 09:38:22 +01:00
Paul Holden
6623b2a980 Extract boot code. 2023-06-18 09:04:01 +01:00