This is the system API for the graphics library (DMPGL 2.0).
With a few exceptions, only a C API has been provided for the gx functions.
| Initialization/Termination | ||
|---|---|---|
nngxInitialize
|
Initializes the graphics library (DMPGL). | |
nngxFinalize
|
Terminates the (DMPGL) graphics library. | |
nngxGetAllocator
|
Gets a pointer to the allocator function specified by nngxInitialize. |
|
| Command List Execution Control | ||
nngxGenCmdlists
|
Generates command list objects. | |
nngxDeleteCmdlists
|
Deletes command list objects. | |
nngxBindCmdlist
|
Binds a command list object to the current command list. | |
nngxCmdlistStorage
|
Allocates data regions for the current command list. | |
nngxRunCmdlist
|
Runs the current command list. | |
nngxStopCmdlist
|
Stops command list execution. | |
nngxReserveStopCmdlist
|
Presets the current command list to stop. | |
nngxSplitDrawCmdlist
|
Splits the 3D command buffer for the current command list. | |
nngxClearCmdlist
|
Clears commands accumulated in the current command list. | |
nngxClearFillCmdlist
|
Uses the specified value to clear commands accumulated in the current command list. | |
nngxSetCmdlistCallback
|
Sets the exit callback for the current command list. | |
nngxEnableCmdlistCallback
|
Enables an exit callback in the current command list. | |
nngxDisableCmdlistCallback
|
Disables an exit callback in the current command list. | |
nngxSetCmdlistParameteri
|
Sets a parameter for the current command list. | |
nngxGetCmdlistParameteri
|
Gets a parameter value (param) configured for the current command list. | |
nngxWaitCmdlistDone
|
Waits for the currently running command list object to finish. | |
nngxSetTimeout
|
Configures the nngxWaitCmdlistDone function to time out after the specified time. |
|
nngxSetGasAutoAccumulationUpdate
|
Updates the additive blending results from gas density rendering. | |
| V-Sync Control | ||
nngxCheckVSync
|
Gets the V-Sync counter. | |
nngxWaitVSync
|
Synchronizes with the V-Sync and then returns. | |
nngxSetVSyncCallback
|
Registers the V-Sync callback. | |
| Display Buffer Control | ||
nngxGenDisplaybuffers
|
Generates display buffer objects. | |
nngxDeleteDisplaybuffers
|
Deletes display buffer objects. | |
nngxActiveDisplay
|
Activates a display target. | |
nngxBindDisplaybuffer
|
Binds a display buffer to the active display target. | |
nngxDisplaybufferStorage
|
Allocates a region for the display buffer bound to the active display target. | |
nngxDisplayEnv
|
Sets the display position in the active display target. | |
nngxTransferRenderImage
|
Transfers images from the current color buffer to the display buffer specified by buffer. | |
nngxSwapBuffers
|
Presets the display buffer bound to the display to be shown. | |
nngxGetDisplaybufferParameteri
|
Gets a parameter value configured for the display buffer bound to the active display target. | |
| Command Cache Operations | ||
nngxStartCmdlistSave
|
Starts saving command list objects. | |
nngxStopCmdlistSave
|
Stops saving command list objects. | |
nngxUseSavedCmdlist
|
Adds saved commands to the current command request. | |
nngxExportCmdlist
|
Exports the specified command list as binary data in memory. | |
nngxImportCmdlist
|
Imports an exported command list (binary data) to the specified command list. | |
nngxCopyCmdlist
|
Copies a command list object to another command list object. | |
nngxValidateState
|
Checks the state and generates commands. | |
nngxUpdateState
|
Updates the specified states. | |
nngxGetExportedCmdlistInfo
|
Gets information about an exported command list (binary data). | |
nngxSetCommandGenerationMode
|
Sets the command output mode. | |
nngxGetCommandGenerationMode
|
Gets the command output mode. | |
nngxAdd3DCommand
|
Adds the data (the 3D command) in the specified region to the current 3D command buffer. | |
nngxAddCmdlist
|
Adds the content of the specified command list object to the current command list object. | |
nngxGetUpdatedState
|
Gets the updated DMPGL states. | |
nngxInvalidateState
|
Disables updates for the specified DMPGL states. | |
| Issuance of Low-level Command Requests | ||
nngxAddVramDmaCommand
|
Issues a DMA transfer command to the current command list. | |
nngxTransferLinearImage
|
Adds a command to transfer an image to the specified render buffer or texture. | |
nngxFilterBlockImage
|
Issues a command to antialias-filter and transfer a block image. | |
nngxAddL2BTransferCommand
|
Adds a command to convert from a linear image into a block image and then to transfer it. | |
nngxAddB2LTransferCommand
|
Adds a command to convert from a block image to a linear image and then to transfer it. | |
nngxAddBlockImageCopyCommand
|
Adds a block image transfer command. | |
nngxAddMemoryFillCommand
|
Adds a memory fill command. | |
| nngxFlush3DCommand | Issues a 3D execution command and flushes the accumulated 3D command buffer. | |
| Support of Direct Generation of 3D Command Buffer | ||
| nngxGetPhysicalAddr | Converts a virtual address into a physical address. | |
| nngxUpdateBuffer | Applies to the graphics processor the updates that have been made to the contents of the vertex buffer and texture buffer in main memory. | |
| nngxMoveCommandbufferPointer | Moves the current output-destination pointer of the 3D command buffer. | |
| Upper Screen Display Mode Settings | ||
nngxSetDisplayMode
|
Sets the display mode for the upper screen. | |
| Other | ||
nngxStartLcdDisplay
|
Starts displaying an image on an LCD display. | |
nngxSetMemAccessPrioMode
|
Sets priority of access to main memory (FCRAM). | |
nngxIsStereoVisionAllowed
|
Gets whether stereoscopic display is allowed. | |
nngxGetVramStartAddr
|
Gets the starting address of the specified VRAM region. | |
nngxGetVramEndAddr
|
Gets the ending address of the specified VRAM region. | |
nngxGetVramSize
|
Gets the size of the specified VRAM region. | |
CONFIDENTIAL