|
| | PsCam (const char *pszName) |
| | Construct a camera with the default projection.
|
| | ~PsCam () override |
| void * | operator new (size_t nSize) |
| | Allocate a camera, billed to the base class name.
|
| void | operator delete (void *pBlock) |
| | Release a camera.
|
| int | DrawShowing () override |
| | Make this camera the one the frame is drawn through.
|
| | RndCam (const char *pszName) |
| | Construct a camera looking along y with a quarter-turn field of view, from 1 to 1000 units.
|
| | ~RndCam () override |
| | Release the camera and stop drawing through it.
|
| void * | operator new (size_t nSize) |
| | Allocate a camera, billed to the class name.
|
| void | operator delete (void *pBlock) |
| | Release a camera.
|
| void | ListDrawObjects (std::list< RndObject * > &objects) override |
| | Add the camera itself to a list.
|
| void | ListDrawables (std::list< RndDrawable * > &drawables) override |
| | Make the camera current and add the drawables of the children to a list.
|
| int | DrawShowing () override |
| | Make the camera current.
|
| int | UpdateWorldXfm (RndTransformable *pParent, int bForce) override |
| | Recompute the world transform, and the world projection when it changed.
|
| void | Collide (const Vector2 &point, std::list< Collision > &collisions) override |
| | Record the camera as struck when a screen point falls inside mScreenRect, then test the children.
|
| void | DumpText (PrnStream &stream) override |
| | Write a description of the camera and its bases.
|
| void | Save (BinStream &stream) override |
| | Write the camera and its bases.
|
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| | Replace a referenced object with another.
|
| const char * | ClassName () const override |
| | Report the class name.
|
| void | Copy (const RndObject *pSource, int nFlags) override |
| | Copy another camera and its bases.
|
| void | Load (BinStream &stream) override |
| | Read what Save() wrote, or an earlier version of it.
|
| void | WorldToScreen (const Vector3 &world, Vector2 &screen) const |
| | Project a world point to a screen point through mWorldProject and mScreenRect.
|
| void | SetTargetTex (RndTex *pTex) |
| | Render into a texture rather than the display, or stop.
|
| void | SetFrustum (float fNear, float fFar, float fFov) |
| | Set the view volume.
|
| void | UpdateProjection () |
| | Rebuild the local projection and the local view volume, then the world projection.
|
| void | UpdateWorldProject () |
| | Rebuild the world projection and the world view volume from the world transform.
|
| float | GetFarPlane () const |
| float | GetFov () const |
| const Transform & | GetInvWorldXfm () const |
| const Transform & | GetLocalProject () const |
| float | GetNearPlane () const |
| const Transform & | GetOrthoWorldXfm () const |
| const Rect & | GetScreenRect () const |
| void | SetScreenRect (const Rect &rect) |
| RndTex * | GetTargetTex () const |
| const Frustum & | GetWorldFrustum () const |
| const Vector2 & | GetZRange () const |
| void | SetZRange (const Vector2 &range) |
| virtual void | Collide (const Segment &segment, std::list< Collision > &collisions) |
| | Test a segment against the collideable and add what it strikes to a list.
|
| | RndDrawable () |
| | Construct a showing drawable without a highlight or children.
|
| | ~RndDrawable () override |
| | Drop the references on the children.
|
| virtual void | SetShowing (int nShowing) |
| | Set whether the drawable draws at all.
|
| virtual void | SetHighlight (int nHighlight) |
| | Set whether the drawable draws with its highlight treatment.
|
| void | DumpText (PrnStream &stream) override |
| | Write a description of the drawable.
|
| void | Save (BinStream &stream) override |
| | Write the showing flag and the names of the children.
|
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| | Replace a child with another object.
|
| void | Copy (const RndObject *pSource, int nFlags) override |
| | Copy the showing flag, and the children when the flags request them.
|
| void | Load (BinStream &stream) override |
| | Read what Save() wrote.
|
| RndDrawable * | Parent () |
| | Find the drawable whose children include this one.
|
| void | Draw () |
| | Draw the drawable and then its children, when it is showing.
|
| bool | AddDraw (RndDrawable *pDraw, RndDrawable *pBefore) |
| | Add a child before another.
|
| void | RemoveDraw (RndDrawable *pDraw) |
| | Remove a child.
|
| void | ClearDraws () |
| | Remove every child.
|
| int | GetShowing () const |
| const std::list< RndDrawable * > & | GetDraws () const |
| | RndObject (const char *pszName) |
| | Construct an object and register it under a name.
|
| virtual | ~RndObject () |
| | Notify every referrer, then erase the registration.
|
| void | SetName (const char *pszName) |
| | Register the object under a different name.
|
| void | AddRef (RndObject *pReferrer) |
| | Register an object as a store of a pointer to this one.
|
| void | RemoveRef (RndObject *pReferrer) |
| | Drop the first registration AddRef() made for a referrer.
|
| const char * | GetName () const |
| const std::list< RndObject * > & | GetRefs () const |
| int | GetInternal () const |
| void | SetInternal (int nInternal) |
| | RndTransformable () |
| | Construct a transformable with identity transforms, no origin offset, and no billboard.
|
| | ~RndTransformable () override |
| | Drop the references on the children.
|
| virtual void | SetBillboard (int nBillboard) |
| | Set the billboard mode.
|
| void | DumpText (PrnStream &stream) override |
| | Write a description of the transformable.
|
| void | Save (BinStream &stream) override |
| | Write the transforms, the names of the children, the billboard mode, and the origin.
|
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| | Replace a child with another object.
|
| void | Copy (const RndObject *pSource, int nFlags) override |
| | Copy the transforms, the billboard mode, the origin, and the children when the flags request them.
|
| void | Load (BinStream &stream) override |
| | Read what Save() wrote, or an earlier version of it.
|
| void | SetOrigin (const Vector3 &origin) |
| | Set the point the world transform subtracts first when there is no billboard.
|
| RndTransformable * | Parent () |
| | Find the transformable whose children include this object.
|
| bool | AddTrans (RndTransformable *pTrans) |
| | Append a child and mark its world transform dirty.
|
| void | RemoveTrans (RndTransformable *pTrans) |
| | Remove a child.
|
| void | ClearTrans () |
| | Remove every child.
|
| const Transform & | BillboardXfm () |
| | Report the world transform turned to face the current camera.
|
| const Transform & | GetLocalXfm () const |
| Transform & | GetLocalXfm () |
| void | SetLocalXfm (const Transform &xfm) |
| const Transform & | GetWorldXfm () const |
| Transform & | GetWorldXfm () |
| int | GetDirty () const |
| void | SetDirty (int nDirty) |
| const std::list< RndTransformable * > & | GetTransList () const |
| | RndCollideable () |
| | Construct a collideable without children.
|
| | ~RndCollideable () override |
| | Drop the references on the children.
|
| void | DumpText (PrnStream &stream) override |
| | Write a description of the collideable.
|
| void | Save (BinStream &stream) override |
| | Write the names of the children.
|
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| | Replace a child with another object.
|
| void | Copy (const RndObject *pSource, int nFlags) override |
| | Copy the children when the flags request them.
|
| void | Load (BinStream &stream) override |
| | Read what Save() wrote.
|
| RndCollideable * | Parent () |
| | Find the collideable whose children include this one.
|
| bool | AddCollide (RndCollideable *pCollide) |
| | Append a child.
|
| void | RemoveCollide (RndCollideable *pCollide) |
| | Remove a child.
|
Camera, PlayStation 2.
The RTTI includes the class name and records RndCam as the one base. The class adds no data member. DrawShowing() programs the GS scissor and fills the transforms the mesh and particle paths read.