Commit graph

1733 commits

Author SHA1 Message Date
Paul Holden
e7d3524b41 Add missing disassembly. 2023-09-23 22:17:57 +01:00
Paul Holden
c06b054a0a Move triangle commands to microcode. 2023-09-23 22:17:57 +01:00
Paul Holden
f616f73720 Move some trivial commands to microcode. 2023-09-23 22:17:57 +01:00
Paul Holden
d086cc6dae Move vertex commands to microcode. 2023-09-23 22:17:57 +01:00
Paul Holden
04401f7d79 Move matrix commands to microcode classes. 2023-09-23 22:17:57 +01:00
Paul Holden
04c53ca57d Move texRect and fillRect to GBIMicrocode. 2023-09-23 22:17:57 +01:00
Paul Holden
db15966fb0 Add disassembly for executeGBI2_SpNoop. 2023-09-23 22:17:57 +01:00
Paul Holden
a1daa40879 Move tmem commands to GBIMicrocode. 2023-09-23 22:17:57 +01:00
Paul Holden
209ec1864d Move more commands to GBIMicrocode. 2023-09-23 22:17:57 +01:00
Paul Holden
80c7680274 Move setTile commands to GBIMicrocode. 2023-09-23 22:17:57 +01:00
Paul Holden
cba9aeb188 Move setColor commands to GBIMicrocode. 2023-09-23 22:17:57 +01:00
Paul Holden
48872a2dba Use a map rather than a switch. 2023-09-23 22:17:57 +01:00
Paul Holden
a07cc3ef4c Make it possible for microcodes to override the existing handler tables. 2023-09-23 22:17:57 +01:00
Paul Holden
6a12b019cc Start splitting up different microcodes. 2023-09-23 22:17:57 +01:00
Paul Holden
b98e42eda2 Simplify how TriangleBuffer is used. 2023-09-23 22:17:57 +01:00
Paul Holden
ab56a8c6db Add Tile.set and Tile.setSize. 2023-09-23 22:17:57 +01:00
Paul Holden
96b118e70c var -> const/let. 2023-09-23 22:17:57 +01:00
Paul Holden
04547f3a63 camelCase and const/let. 2023-09-23 22:17:57 +01:00
Paul Holden
7f8f08678c Rename Tile members in camelCase 2023-09-23 22:17:57 +01:00
Paul Holden
51071e26c0 Encapsulate TextureImage. 2023-09-23 22:17:57 +01:00
Paul Holden
715580a434 Add convertTexels helper to tmem. 2023-09-23 22:17:57 +01:00
Paul Holden
4539e3efde Move loadTLUT to tmem. 2023-09-23 22:17:57 +01:00
Paul Holden
266081cb47 Split out tmem. 2023-09-23 22:17:57 +01:00
Paul Holden
0a6b6d1725 Rename hle to hle_graphics. 2023-09-23 22:17:57 +01:00
Paul Holden
eaad74148d Split out RSPTask. 2023-09-23 22:17:57 +01:00
Paul Holden
9cdd48c799 Move hle.js to hle dir. 2023-09-23 22:17:57 +01:00
Paul Holden
1e89f24106 Move convert, textures and shaders to hle dir. 2023-09-23 22:17:57 +01:00
Paul Holden
a8456dd8fb Move triangle_buffer to hle dir. 2023-09-23 22:17:57 +01:00
Paul Holden
dc8121731f Move gbi.js to hle dir. 2023-09-23 22:17:57 +01:00
Paul Holden
622e23a6be Use accessors. 2023-09-23 22:17:57 +01:00
Paul Holden
10c4e2d91c Move tile to hle/ dir. 2023-09-23 22:17:57 +01:00
Paul Holden
bdee62a5d1 Add some debugging when setting lights with unexpected lengths,. 2023-09-23 22:17:57 +01:00
Paul Holden
565879c2df Move some helpers to RSPState. 2023-09-23 22:17:57 +01:00
Paul Holden
819c65ff61 Add a setTexture helper. 2023-09-23 22:17:57 +01:00
Paul Holden
3c46bb7630 Fix filename. 2023-09-23 22:17:57 +01:00
Paul Holden
28a3f88005 Move updateGeometryModeFromBits to RSPState. 2023-09-23 22:17:57 +01:00
Paul Holden
7c4167bf6a Add a RSPState class. 2023-09-23 22:17:57 +01:00
Paul Holden
96a172ca83 Reorder 2023-09-23 22:17:57 +01:00
Paul Holden
2e6326f941 Tidy. 2023-09-23 22:17:57 +01:00
Paul Holden
8097e9e158 Inline makeN64FramebufferToDeviceMatrix. 2023-09-23 22:17:57 +01:00
Paul Holden
7a1b885e6c Remove unused args. 2023-09-23 22:17:57 +01:00
Paul Holden
70d2c6ba9a Rename to initDimensions to make it clearer it happens once during processing. 2023-09-23 22:17:57 +01:00
Paul Holden
3f3393c8aa Add x, y, z, w accessors. 2023-09-23 22:17:57 +01:00
Paul Holden
ee1383b826 Update viewport to use Vector2. 2023-09-23 22:17:57 +01:00
Paul Holden
de755c170d Tidy 2023-09-23 22:17:57 +01:00
Paul Holden
004cf70d30 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-23 22:17:57 +01:00
Paul Holden
1370d033b4 Add a Transform2D class. 2023-09-23 22:17:57 +01:00
Paul Holden
671f2e7832 Add a Vector2 class. 2023-09-23 22:17:57 +01:00
Paul Holden
1ca706cee3 Rename Matrix to Matrix4x4. 2023-09-23 22:17:57 +01:00
Paul Holden
00fc438524 Tidy 2023-09-23 22:17:57 +01:00