Commit graph

1886 commits

Author SHA1 Message Date
Paul Holden
7f5ba37ee3 Move some GBI1 commands to microcode. 2023-09-16 14:06:53 +01:00
Paul Holden
2f09ffb5bd Move some GBI1 commands to microcode. 2023-09-16 14:01:41 +01:00
Paul Holden
d2a647f49d Move remaining GBI2 commands to microcode. 2023-09-16 13:54:40 +01:00
Paul Holden
b770f1fd2d triangleBuffer is unused now. 2023-09-16 12:19:11 +01:00
Paul Holden
b79d3f3641 Move more GBI2 commands to microcode. 2023-09-16 12:18:18 +01:00
Paul Holden
aaa4559db7 Add missing disassembly. 2023-09-16 12:13:10 +01:00
Paul Holden
b5f87b39f7 Move triangle commands to microcode. 2023-09-16 12:11:45 +01:00
Paul Holden
eb7ddbbcd5 Move some trivial commands to microcode. 2023-09-16 12:02:38 +01:00
Paul Holden
2f13f1956f Move vertex commands to microcode. 2023-09-16 11:48:36 +01:00
Paul Holden
e8aa250f4f Move matrix commands to microcode classes. 2023-09-16 11:41:45 +01:00
Paul Holden
0682a48450 Move texRect and fillRect to GBIMicrocode. 2023-09-16 11:34:12 +01:00
Paul Holden
a0e957eb2f Add disassembly for executeGBI2_SpNoop. 2023-09-16 11:32:45 +01:00
Paul Holden
5980fdea57 Move tmem commands to GBIMicrocode. 2023-09-16 11:26:12 +01:00
Paul Holden
298a70091d Move more commands to GBIMicrocode. 2023-09-16 11:21:21 +01:00
Paul Holden
7084531d0e Move setTile commands to GBIMicrocode. 2023-09-16 11:13:36 +01:00
Paul Holden
0c4a1e563a Move setColor commands to GBIMicrocode. 2023-09-16 11:09:50 +01:00
Paul Holden
b80ca16e35 Use a map rather than a switch. 2023-09-16 11:00:56 +01:00
Paul Holden
9207e1f01f Make it possible for microcodes to override the existing handler tables. 2023-09-16 10:46:02 +01:00
Paul Holden
fde67e1dff Start splitting up different microcodes. 2023-09-16 09:40:43 +01:00
Paul Holden
37e1a46572 Simplify how TriangleBuffer is used. 2023-09-16 09:28:10 +01:00
Paul Holden
a75569a4c8 Add Tile.set and Tile.setSize. 2023-09-16 08:35:04 +01:00
Paul Holden
4fe6b9b18e var -> const/let. 2023-09-15 23:24:25 +01:00
Paul Holden
458f256318 camelCase and const/let. 2023-09-15 23:08:20 +01:00
Paul Holden
fb51eccc81 Rename Tile members in camelCase 2023-09-15 22:52:03 +01:00
Paul Holden
83a8970f25 Encapsulate TextureImage. 2023-09-15 09:15:18 +01:00
Paul Holden
f19b3c313a Add convertTexels helper to tmem. 2023-09-15 08:59:35 +01:00
Paul Holden
adafd12695 Move loadTLUT to tmem. 2023-09-15 08:57:00 +01:00
Paul Holden
4d9d8a6f3a Split out tmem. 2023-09-15 08:52:31 +01:00
Paul Holden
92766bd846 Rename hle to hle_graphics. 2023-09-15 08:33:23 +01:00
Paul Holden
b79501ebd0 Split out RSPTask. 2023-09-15 08:32:38 +01:00
Paul Holden
36dc76d9aa Move hle.js to hle dir. 2023-09-15 08:20:29 +01:00
Paul Holden
6d5925b623 Move convert, textures and shaders to hle dir. 2023-09-15 08:18:08 +01:00
Paul Holden
45888aa83a Move triangle_buffer to hle dir. 2023-09-15 08:16:51 +01:00
Paul Holden
3af877d9f8 Move gbi.js to hle dir. 2023-09-15 08:15:20 +01:00
Paul Holden
62feaabeba Use accessors. 2023-09-15 08:13:57 +01:00
Paul Holden
60a9a15a49 Move tile to hle/ dir. 2023-09-15 08:11:54 +01:00
Paul Holden
69912c102d Add some debugging when setting lights with unexpected lengths,. 2023-09-15 08:10:39 +01:00
Paul Holden
4d7f7babb3 Move some helpers to RSPState. 2023-09-14 23:55:21 +01:00
Paul Holden
dd79ba52cb Add a setTexture helper. 2023-09-14 23:44:18 +01:00
Paul Holden
00780685c3 Fix filename. 2023-09-14 23:40:33 +01:00
Paul Holden
cbc7eefe32 Move updateGeometryModeFromBits to RSPState. 2023-09-14 23:39:04 +01:00
Paul Holden
82c07ac71f Add a RSPState class. 2023-09-14 23:36:58 +01:00
Paul Holden
10789e37b5 Reorder 2023-09-14 23:25:16 +01:00
Paul Holden
0ae366c15f Tidy. 2023-09-14 23:17:07 +01:00
Paul Holden
6c2ef504dc Inline makeN64FramebufferToDeviceMatrix. 2023-09-14 23:16:07 +01:00
Paul Holden
3dbe63e188 Remove unused args. 2023-09-14 23:14:15 +01:00
Paul Holden
25e7052da9 Rename to initDimensions to make it clearer it happens once during processing. 2023-09-14 23:13:17 +01:00
Paul Holden
a2c7b057f7 Add x, y, z, w accessors. 2023-09-14 23:11:28 +01:00
Paul Holden
e3e8bfe41c Update viewport to use Vector2. 2023-09-14 23:06:52 +01:00
Paul Holden
192562eb28 Tidy 2023-09-14 22:57:27 +01:00