27 explicit PsCam(
const char *pszName);
41 void *
operator new(
size_t nSize) {
50 void operator delete(
void *pBlock) {
91 return new PsCam(pszName);
Six-plane view volume.
Definition frustum.h:16
static void Init()
Install the camera factory and build the default camera.
PsCam(const char *pszName)
Construct a camera with the default projection.
int DrawShowing() override
Make this camera the one the frame is drawn through.
static RndObject * New(const char *pszName)
Create a camera.
Definition pscam.h:90
RndCam(const char *pszName)
Construct a camera looking along y with a quarter-turn field of view, from 1 to 1000 units.
RndObject(const char *pszName)
Construct an object and register it under a name.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.
Transform g_viewportUnscaledXfm
Clip to GS coordinate transform without the guard band scaling.
Frustum g_drawFrustum
The view volume widened by the guard band, in world space.
Transform g_viewProjectUnscaledXfm
World to clip transform without the guard band widening.
Transform g_viewProjectXfm
World to clip transform, the projection widened by the guard band.
Transform g_viewportXfm
Clip to GS coordinate transform, scaled by the guard band.
Vector3 g_particleProjectScale
The widened projection scale on each axis, with y negated, and two zero components.
Vector3 g_invGuardBandScale
Reciprocal of the factor the view is widened by on each axis before clipping.
Transform g_viewProjectBiasedXfm
g_viewProjectXfm with the depth of a perspective projection moved one depth unit nearer.
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14