@@ -433,8 +433,10 @@ void sceGuFog(float near, float far, unsigned int color);
433433 * Initalize the GU system
434434 *
435435 * This function MUST be called as the first function, otherwise state is undetermined.
436+ *
437+ * @return 0 for success, < 0 for failure
436438**/
437- void sceGuInit (void );
439+ int sceGuInit (void );
438440
439441/**
440442 * Shutdown the GU system
@@ -475,6 +477,11 @@ void* sceGuSetCallback(int signal, void (*callback)(int));
475477
476478/**
477479 * Trigger signal to call code from the command stream
480+ *
481+ * Available signals are:
482+ * - GU_SIGNAL_WAIT - Wait for callback to finish
483+ * - GU_SIGNAL_NOWAIT - Do not wait for callback to finish
484+ * - GU_SIGNAL_PAUSE - Pause execution until callback is finished
478485 *
479486 * Available behaviors are:
480487 * - GU_BEHAVIOR_SUSPEND - Stops display list execution until callback function finished
@@ -564,8 +571,9 @@ int sceGuFinishId(unsigned int id);
564571 * Call previously generated display-list
565572 *
566573 * @param list - Display list to call
574+ * @return 0 for success, < 0 for failure
567575**/
568- void sceGuCallList (const void * list );
576+ int sceGuCallList (const void * list );
569577
570578/**
571579 * Set wether to use stack-based calls or signals to handle execution of called lists.
@@ -1525,8 +1533,8 @@ void sceGuDrawArrayN(int primitive_type, int vertex_type, int vcount, int primco
15251533 * Set how the display should be set
15261534 *
15271535 * Available behaviours are:
1528- * - PSP_DISPLAY_SETBUF_IMMEDIATE - Display is swapped immediately
1529- * - PSP_DISPLAY_SETBUF_NEXTFRAME - Display is swapped on the next frame
1536+ * - PSP_DISPLAY_SETBUF_NEXTHSYNC - Display is swapped on the next hsync
1537+ * - PSP_DISPLAY_SETBUF_NEXTVSYNC - Display is swapped on the next vsync
15301538 *
15311539 * Do remember that this swaps the pointers internally, regardless of setting, so be careful to wait until the next
15321540 * vertical blank or use another buffering algorithm (see guSwapBuffersCallback()).
0 commit comments