sotn-decomp/include/psxsdk
Luciano Ciccariello fc91e63a90
Rename LoadClut2 to LoadClut (#1923)
The function name is mislabeled. `LoadClut2` really exists and it was
introduced in PSY-Q 3.5, but it only loads a row of 16 colors into the
VRAM. The implementation we have at
[src/main/psxsdk/libgpu/ext.c](https://github.com/Xeeynamo/sotn-decomp/blob/master/src/main/psxsdk/libgpu/ext.c#L31)
loads 256 colors though, which matches the implementation of `LoadClut`.

From `PSX/CHANGE_E.TXT` in the PlayStation Programmer Tool - Runtime
Library Version 3.5:

```
LoadClut2	Loads Clut for 16 colors.

	Syntax
		u_short LoadClut2(u_long *clut, int x, int y)

	Arguments
		clut	Starting address of the texture color
		x, y	Destination frame buffer address

	Explanation
		This function loads the texture color data(CLUT) starting at
		the address specified by "clut" to the frame buffer(x, y) and 
		then calculates CLUT ID for the texture CLUT just loaded.

	Return Value
		CLUT ID for loaded CLUT

	Remarks
		This function transfers the CLUT data of only 16 colors.
```
2024-11-21 13:51:50 +01:00
..
kernel.h Fake matches and unknown structs clean-up (#681) 2023-10-12 08:04:25 -07:00
libapi.h Decompile libgs Wrappers (#1132) 2024-06-18 15:45:32 -07:00
libc.h Add Include Guards for All Headers (#1855) 2024-10-31 20:27:49 +00:00
libcard.h Add Include Guards for All Headers (#1855) 2024-10-31 20:27:49 +00:00
libcd.h Add Include Guards for All Headers (#1855) 2024-10-31 20:27:49 +00:00
libetc.h Correct the split of libapi/l10.c (#1099) 2024-03-14 15:57:27 -07:00
libgpu.h Rename LoadClut2 to LoadClut (#1923) 2024-11-21 13:51:50 +01:00
libgs.h Update clang-format as self-contained binary (#1257) 2024-06-04 21:07:50 +01:00
libgte.h Decompile ST0 func_801BC5C0 (#1832) 2024-10-26 16:18:34 +01:00
libsnd.h Enable spu init (#1344) 2024-06-19 09:37:07 -07:00
libspu.h Sound docs (#760) 2023-11-11 14:15:38 +00:00
romio.h func_801B884C 2023-01-03 11:23:36 +00:00