Gfx GX Fn GXGetProjectionv - wowjinxy/libPorpoise GitHub Wiki
GXGetProjectionv
- Category:
Transformation and Matrix
- Matrix Status:
Implemented
- Matrix Notes: Verified projection vector layout (
type, then p0-p5) and SDK-style strict pointer semantics (no fail-soft NULL guard).
- Matrix Link: Gfx-GX-API-Matrix
Official SDK (Reference)
- Manual root:
reference/rvlsdk/man/en_US/gx
- Primary SDK source area:
demos/PikminDemo/src/gx (GC-style Dolphin GX source)
- Notes:
libPorpoise Implementation
- Runtime implementation area:
src/gx
- Public API surface:
include/dolphin/gx
- Notes:
SDK vs Porpoise Diff
- Signature parity:
- Behavioral parity:
-
Known divergence:
Validation Checklist
Working Notes
- Docs checked against
reference/man/gfx/gx/Transform/GXGetProjectionv.html and SDK source in reference/gx/GXTransform.c.
- SDK behavior:
- Outputs projection array as
p[0]=type, p[1..6]=p0..p5.
- Uses assert-style pointer contract (
ASSERTMSG(ptr, GXERR_GET_NULL_PTR)), not fail-soft return.
- Runtime parity update in
src/gx/pc_gx.c:
- Removed defensive
if (!p) return; from GXGetProjectionv.
- Kept matrix-field mapping aligned with documented perspective/orthographic formats.