#include <libgraph.h>
Go to the source code of this file.
|
| void | SetDispBuffers (GsDoubleBuffer *pBuffers, short nWidth, short nHeight, short nPsm, short nFbp0, short nFbp1) |
| | Build both display environments.
|
| void | SetDrawBuffersSmall (GsDoubleBuffer *pBuffers, short nWidth, short nHeight, short nPsm, short nFbp0, short nFbp1, short nZbp, short nZTest, short nZPsm, short nClear) |
| | Build both draw environments, their GIFtags, and their clears.
|
| void | PutDrawBufferSmall (GsDoubleBuffer *pBuffers, int nHalf, int bClear) |
| | Send one draw environment to the GS through the SDK.
|
| void | PutDispBuffer (GsDoubleBuffer *pBuffers, int nHalf, int bEnableCircuit1) |
| | Write one display environment to the privileged GS registers.
|
◆ SetDispBuffers()
| void SetDispBuffers |
( |
GsDoubleBuffer * | pBuffers, |
|
|
short | nWidth, |
|
|
short | nHeight, |
|
|
short | nPsm, |
|
|
short | nFbp0, |
|
|
short | nFbp1 ) |
Build both display environments.
Each takes the SDK defaults with PMODE blending at 0x80 and both circuits enabled. Circuit 1 shows the buffer as the SDK set it, and circuit 2 starts one line lower, one line shorter, and two units to the right.
- Parameters
-
| pBuffers | The double buffer. |
| nWidth | Width in pixels. |
| nHeight | Height in pixels. |
| nPsm | Pixel storage format. |
| nFbp0 | Page of buffer 0. |
| nFbp1 | Page of buffer 1. |
- Ghidra address:
- NTSC-U/C: 0x0058e330
- Ghidra address:
- PAL: 0x005d1688
◆ SetDrawBuffersSmall()
| void SetDrawBuffersSmall |
( |
GsDoubleBuffer * | pBuffers, |
|
|
short | nWidth, |
|
|
short | nHeight, |
|
|
short | nPsm, |
|
|
short | nFbp0, |
|
|
short | nFbp1, |
|
|
short | nZbp, |
|
|
short | nZTest, |
|
|
short | nZPsm, |
|
|
short | nClear ) |
Build both draw environments, their GIFtags, and their clears.
- Parameters
-
| pBuffers | The double buffer. |
| nWidth | Width in pixels. |
| nHeight | Height in pixels. |
| nPsm | Pixel storage format of the frame buffers. |
| nFbp0 | Page of buffer 0. |
| nFbp1 | Page of buffer 1. |
| nZbp | Page of the depth buffer. |
| nZTest | Depth test, where zero also masks depth writes. |
| nZPsm | Pixel storage format of the depth buffer. |
| nClear | Never read. The caller passes it in the tenth argument slot on the stack. |
- Ghidra address:
- NTSC-U/C: 0x0058e538
- Ghidra address:
- PAL: 0x005d1890
◆ PutDrawBufferSmall()
| void PutDrawBufferSmall |
( |
GsDoubleBuffer * | pBuffers, |
|
|
int | nHalf, |
|
|
int | bClear ) |
Send one draw environment to the GS through the SDK.
Both GIFtags receive the loop count first. The choice of clear therefore persists into the other half.
- Parameters
-
| pBuffers | The double buffer. |
| nHalf | Zero for half 0, anything else for half 1. |
| bClear | Non-zero to send the clear with the environment. |
- Ghidra address:
- NTSC-U/C: 0x0058e7e8
- Ghidra address:
- PAL: 0x005d1b40
◆ PutDispBuffer()
| void PutDispBuffer |
( |
GsDoubleBuffer * | pBuffers, |
|
|
int | nHalf, |
|
|
int | bEnableCircuit1 ) |
Write one display environment to the privileged GS registers.
Read circuit 2 is always enabled. Circuit 1 is enabled or disabled by bEnableCircuit1, and the choice is stored back into the environment.
- Parameters
-
| pBuffers | The double buffer. |
| nHalf | Zero for half 0, anything else for half 1. |
| bEnableCircuit1 | Non-zero to enable read circuit 1. |
- Ghidra address:
- NTSC-U/C: 0x0058e860
- Ghidra address:
- PAL: 0x005d1bb8