mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-08 23:38:16 +00:00
- Adding assertions to each specific sceGu function - Also adding printf for verbose output
23 lines
601 B
C
23 lines
601 B
C
/*
|
|
* PSP Software Development Kit - https://github.com/pspdev
|
|
* -----------------------------------------------------------------------
|
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
|
*
|
|
* Copyright (c) 2005 Jesper Svennevid
|
|
*/
|
|
|
|
#include "guInternal.h"
|
|
|
|
void sceGuOffset(unsigned int x, unsigned int y)
|
|
{
|
|
#ifdef GU_DEBUG
|
|
printf("sceGuOffset(%08X, %08X);\n", x, y);
|
|
assert(gu_init && "GU not initialized");
|
|
assert(x < 4096 && "X offset too large");
|
|
assert(y < 4096 && "Y offset too large");
|
|
#endif
|
|
|
|
sendCommandi(OFFSET_X, x << 4);
|
|
sendCommandi(OFFSET_Y, y << 4);
|
|
}
|