Go to the source code of this file.
Data Structures | |
| struct | PspGeContext |
| Stores the state of the GE. More... | |
| struct | PspGeCallbackData |
| Structure to hold the callback data. More... | |
Typedefs | |
| typedef void(*) | PspGeCallback (int id, void *arg) |
| Typedef for a GE callback. | |
Enumerations | |
| enum | PspGeMatrixTypes { PSP_GE_MATRIX_BONE0 = 0, PSP_GE_MATRIX_BONE1, PSP_GE_MATRIX_BONE2, PSP_GE_MATRIX_BONE3, PSP_GE_MATRIX_BONE4, PSP_GE_MATRIX_BONE5, PSP_GE_MATRIX_BONE6, PSP_GE_MATRIX_BONE7, PSP_GE_MATRIX_WORLD, PSP_GE_MATRIX_VIEW, PSP_GE_MATRIX_PROJECTION, PSP_GE_MATRIX_TEXGEN } |
| GE matrix types. More... | |
| enum | PspGeSyncType { PSP_GE_LIST_DONE = 0, PSP_GE_LIST_QUEUED, PSP_GE_LIST_DRAWING_DONE, PSP_GE_LIST_STALL_REACHED, PSP_GE_LIST_CANCEL_DONE } |
| Wait condition for sceGeListSync() and sceGeDrawSync(). More... | |
Functions | |
| unsigned int | sceGeEdramGetSize (void) |
| Get the size of VRAM. | |
| void * | sceGeEdramGetAddr (void) |
| Get the address of VRAM. | |
| unsigned int | sceGeGetCmd (int cmd) |
| Retrive the current value of a GE command. | |
| int | sceGeGetMtx (int type, void *matrix) |
| Retrieve a matrix of the given type. | |
| int | sceGeSaveContext (PspGeContext *context) |
| Save the GE's current state. | |
| int | sceGeRestoreContext (const PspGeContext *context) |
| Restore a previously saved GE context. | |
| int | sceGeListEnQueue (const void *list, void *stall, int cbid, void *arg) |
| Enqueue a display list at the tail of the GE display list queue. | |
| int | sceGeListEnQueueHead (const void *list, void *stall, int cbid, void *arg) |
| Enqueue a display list at the head of the GE display list queue. | |
| int | sceGeListDeQueue (int qid) |
| Cancel a queued or running list. | |
| int | sceGeListUpdateStallAddr (int qid, void *stall) |
| Update the stall address for the specified queue. | |
| int | sceGeListSync (int qid, int syncType) |
| Wait for syncronisation of a list. | |
| int | sceGeDrawSync (int syncType) |
| Wait for drawing to complete. | |
| int | sceGeSetCallback (PspGeCallbackData *cb) |
| Register callback handlers for the the Ge. | |
| int | sceGeUnsetCallback (int cbid) |
| Unregister the callback handlers. | |
| typedef void(*) PspGeCallback(int id, void *arg) |
Typedef for a GE callback.
| enum PspGeMatrixTypes |
GE matrix types.
| enum PspGeSyncType |
Wait condition for sceGeListSync() and sceGeDrawSync().
| int sceGeDrawSync | ( | int | syncType | ) |
Wait for drawing to complete.
| syncType | - Specifies the condition to wait on. One of PspGeSyncType. |
| void* sceGeEdramGetAddr | ( | void | ) |
Get the address of VRAM.
| unsigned int sceGeEdramGetSize | ( | void | ) |
Get the size of VRAM.
| unsigned int sceGeGetCmd | ( | int | cmd | ) |
Retrive the current value of a GE command.
| cmd | - The GE command register to retrieve. |
| int sceGeGetMtx | ( | int | type, | |
| void * | matrix | |||
| ) |
Retrieve a matrix of the given type.
| type | - One of PspGeMatrixTypes. | |
| matrix | - Pointer to a variable to store the matrix. |
| int sceGeListDeQueue | ( | int | qid | ) |
Cancel a queued or running list.
| qid | - The ID of the queue. |
| int sceGeListEnQueue | ( | const void * | list, | |
| void * | stall, | |||
| int | cbid, | |||
| void * | arg | |||
| ) |
Enqueue a display list at the tail of the GE display list queue.
| list | - The head of the list to queue. | |
| stall | - The stall address. If NULL then no stall address set and the list is transferred immediately. | |
| cbid | - ID of the callback set by calling sceGeSetCallback | |
| arg | - Probably a parameter to the callbacks (to be confirmed) |
| int sceGeListEnQueueHead | ( | const void * | list, | |
| void * | stall, | |||
| int | cbid, | |||
| void * | arg | |||
| ) |
Enqueue a display list at the head of the GE display list queue.
| list | - The head of the list to queue. | |
| stall | - The stall address. If NULL then no stall address set and the list is transferred immediately. | |
| cbid | - ID of the callback set by calling sceGeSetCallback | |
| arg | - Probably a parameter to the callbacks (to be confirmed) |
| int sceGeListSync | ( | int | qid, | |
| int | syncType | |||
| ) |
Wait for syncronisation of a list.
| qid | - The queue ID of the list to sync. | |
| syncType | - Specifies the condition to wait on. One of PspGeSyncType. |
| int sceGeListUpdateStallAddr | ( | int | qid, | |
| void * | stall | |||
| ) |
Update the stall address for the specified queue.
| qid | - The ID of the queue. | |
| stall | - The stall address to update |
| int sceGeRestoreContext | ( | const PspGeContext * | context | ) |
| int sceGeSaveContext | ( | PspGeContext * | context | ) |
| int sceGeSetCallback | ( | PspGeCallbackData * | cb | ) |
Register callback handlers for the the Ge.
| cb | - Configured callback data structure |
| int sceGeUnsetCallback | ( | int | cbid | ) |
Unregister the callback handlers.
| cbid | - The ID of the callbacks from sceGeSetCallback |
1.5.2