PSPSDK 2024-10-31
|
#include <psptypes.h>
Go to the source code of this file.
Data Structures | |
struct | PspGeContext |
Stores the state of the GE. More... | |
struct | SceGeStack |
Structure storing a stack (for CALL/RET) More... | |
struct | PspGeCallbackData |
Structure to hold the callback data. More... | |
struct | PspGeListArgs |
struct | PspGeBreakParam |
Drawing queue interruption parameter. More... | |
struct | PspGeStack |
Structure storing a stack (for CALL/RET). More... | |
Typedefs | |
typedef struct PspGeContext | PspGeContext |
Stores the state of the GE. | |
typedef void(* | PspGeCallback) (int id, void *arg) |
Typedef for a GE callback. | |
typedef struct PspGeCallbackData | PspGeCallbackData |
Structure to hold the callback data. | |
typedef struct PspGeListArgs | PspGeListArgs |
typedef struct PspGeBreakParam | PspGeBreakParam |
Drawing queue interruption parameter. | |
typedef enum PspGeMatrixTypes | PspGeMatrixTypes |
GE matrix types. | |
typedef enum PspGeListState | PspGeListState |
List status for sceGeListSync() and sceGeDrawSync(). | |
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 | PspGeListState { PSP_GE_LIST_DONE = 0 , PSP_GE_LIST_QUEUED , PSP_GE_LIST_DRAWING_DONE , PSP_GE_LIST_STALL_REACHED , PSP_GE_LIST_CANCEL_DONE } |
List status for sceGeListSync() and sceGeDrawSync(). More... | |
Functions | |
unsigned int | sceGeEdramGetSize (void) |
Get the size of VRAM. | |
int | sceGeEdramSetSize (int size) |
Sets the EDRAM size to be enabled. | |
void * | sceGeEdramGetAddr (void) |
Get the eDRAM address. | |
unsigned int | sceGeGetCmd (int cmd) |
Retrieve the current value of a GE command. | |
int | sceGeGetMtx (int type, void *matrix) |
Retrieve a matrix of the given type. | |
int | sceGeGetStack (int stackId, PspGeStack *stack) |
Retrieve the stack of the display list currently being executed. | |
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, PspGeListArgs *arg) |
Enqueue a display list at the tail of the GE display list queue. | |
int | sceGeListEnQueueHead (const void *list, void *stall, int cbid, PspGeListArgs *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. | |
int | sceGeBreak (int mode, PspGeBreakParam *pParam) |
Interrupt drawing queue. | |
int | sceGeContinue (void) |
Restart drawing queue. | |
int | sceGeEdramSetAddrTranslation (int width) |
Set the eDRAM address translation mode. | |
Drawing queue interruption parameter.
Structure to hold the callback data.
Stores the state of the GE.
List status for sceGeListSync() and sceGeDrawSync().
GE matrix types.
List status for sceGeListSync() and sceGeDrawSync().
Enumerator | |
---|---|
PSP_GE_LIST_DONE | |
PSP_GE_LIST_QUEUED | |
PSP_GE_LIST_DRAWING_DONE | |
PSP_GE_LIST_STALL_REACHED | |
PSP_GE_LIST_CANCEL_DONE |
GE matrix types.
int sceGeBreak | ( | int | mode, |
PspGeBreakParam * | pParam | ||
) |
Interrupt drawing queue.
mode | - If set to 1, reset all the queues. |
pParam | - Unused (just K1-checked). |
Wait for drawing to complete.
syncType | - 0 if you want to wait for the drawing to be completed, or 1 if you just want to peek the state of the display list currently being executed. |
Referenced by sceGuSync().
Get the eDRAM address.
Referenced by guGetStaticVramTexture(), and sceGuInit().
Set the eDRAM address translation mode.
width | - 0 to not set the translation width, otherwise 512, 1024, 2048 or 4096. |
Sets the EDRAM size to be enabled.
size | -size The size (0x200000 or 0x400000). Will return an error if 0x400000 is specified for the PSP FAT. |
Retrieve the current value of a GE command.
cmd | - The GE command register to retrieve (0 to 0xFF, both included). |
Retrieve a matrix of the given type.
type | - One of PspGeMatrixTypes. |
matrix | - Pointer to a variable to store the matrix. |
int sceGeGetStack | ( | int | stackId, |
PspGeStack * | stack | ||
) |
Retrieve the stack of the display list currently being executed.
stackId | - The ID of the stack to retrieve. |
stack | - Pointer to a structure to store the stack, or NULL to not store it. |
Cancel a queued or running list.
qid | - The ID of the queue. |
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 is set and the list is transferred immediately. |
cbid | - ID of the callback set by calling sceGeSetCallback |
arg | - Structure containing GE context buffer address |
Referenced by sceGuInit(), sceGuSendList(), and sceGuStart().
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 is set and the list is transferred immediately. |
cbid | - ID of the callback set by calling sceGeSetCallback |
arg | - Structure containing GE context buffer address |
Referenced by sceGuSendList().
Wait for syncronisation of a list.
qid | - The queue ID of the list to sync. |
syncType | - 0 if you want to wait for the list to be completed, or 1 if you just want to peek the actual state. |
Referenced by sceGuInit(), and sceGuSync().
Update the stall address for the specified queue.
qid | - The ID of the queue. |
stall | - The new stall address. |
Referenced by sceGuGetMemory().
int sceGeRestoreContext | ( | const PspGeContext * | context | ) |
Restore a previously saved GE context.
context | - Pointer to a PspGeContext. |
int sceGeSaveContext | ( | PspGeContext * | context | ) |
int sceGeSetCallback | ( | PspGeCallbackData * | cb | ) |
Register callback handlers for the the GE.
cb | - Configured callback data structure. |
Referenced by sceGuInit().
Unregister the callback handlers.
cbid | - The ID of the callbacks, returned by sceGeSetCallback(). |
Referenced by sceGuTerm().