mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 13:04:59 +00:00
Clean ups around sceGu
- Fix sceGuBreak - Fix sceGuContinue - Fix sceGuDrawArrayN - Fix sceGuMorphWeight - Remove unnecessary 0xffffff as it is done by sendCommandi - Improve the name of some parameters - Create and use GU_MAX_STATUS - Remove magic numbers in `sceGuMaterial` - Remove magic numbers in `sceGuMorphWeight` - Remove magic numbers in `sceGuSetMatrix` - Remove magic numbers in `sceGuSignal`
This commit is contained in:
@@ -16,13 +16,13 @@ void sceGuDrawArray(int prim, int vtype, int count, const void *indices, const v
|
||||
if (indices)
|
||||
{
|
||||
sendCommandi(BASE, (((unsigned int)indices) >> 8) & 0xf0000);
|
||||
sendCommandi(IADDR, ((unsigned int)indices) & 0xffffff);
|
||||
sendCommandi(IADDR, ((unsigned int)indices));
|
||||
}
|
||||
|
||||
if (vertices)
|
||||
{
|
||||
sendCommandi(BASE, (((unsigned int)vertices) >> 8) & 0xf0000);
|
||||
sendCommandi(VADDR, ((unsigned int)vertices) & 0xffffff);
|
||||
sendCommandi(VADDR, ((unsigned int)vertices));
|
||||
}
|
||||
|
||||
sendCommandiStall(PRIM, (prim << 16) | count);
|
||||
|
||||
Reference in New Issue
Block a user