mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
305b5485b9
Adapted from the original feature commits, retaining their author credit: [0a955971](https://github.com/FractalEngineer/psxrecomp/commit/0a95597129cc2ee6d70397a8da9511831575eae4) [0a4cf21f](https://github.com/FractalEngineer/psxrecomp/commit/0a4cf21fac88ef425ba0edd25871d7dd20ee0903) [22bdc9e9](https://github.com/FractalEngineer/psxrecomp/commit/22bdc9e90d14f7a04b79c83b77611c4eb980fef4) [734977c9](https://github.com/FractalEngineer/psxrecomp/commit/734977c93e80789e9210a262daa35a88f41c40d4) Source scope and current-master validation: docs/internal/upstream/atomic-stereo-render-views.md Co-authored-by: Yves <calibratedbeats@gmail.com>
14 lines
829 B
C
14 lines
829 B
C
#pragma once
|
|
#include "mod_plugins.h"
|
|
/* XR right-handed X right/Y up/Z back; PSX X right/Y down/Z forward. */
|
|
int vr_pose_to_view(const double q[4], const double p[3],
|
|
const double origin_q[4], const double origin_p[3],
|
|
const double fov[4], double units_per_meter,
|
|
int width, int height, PSXModRenderView *out);
|
|
/* Pose-to-recentered-PSX-camera transform, inverse to the view transform.
|
|
* Row-major rotation maps PSX local axes; translation uses game camera units.
|
|
* This does not apply any game's body/world matrix or aiming policy. */
|
|
int vr_pose_to_transform(const double q[4],const double p[3],
|
|
const double origin_q[4],const double origin_p[3],
|
|
double units_per_meter,double rotation[9],double translation[3]);
|