#include <portal.h>
Inheritance diagram for iPortal:
Public Methods | |
virtual iObject* | QueryObject ()=0 |
Get the iObject for this portal. | |
virtual iSector* | GetSector () const=0 |
Return the sector that this portal points too. | |
virtual void | SetSector (iSector *s)=0 |
Set the sector that this portal points too. More... | |
virtual csFlags& | GetFlags ()=0 |
Set portal flags (see CS_PORTAL_XXX values). | |
virtual void | SetPortalCallback (iPortalCallback *cb)=0 |
Set the portal callback. More... | |
virtual iPortalCallback* | GetPortalCallback () const=0 |
Get the portal callback. | |
virtual void | SetMissingSectorCallback (iPortalCallback *cb)=0 |
Set the missing sector callback. More... | |
virtual iPortalCallback* | GetMissingSectorCallback () const=0 |
Get the missing sector callback. | |
virtual void | SetFilter (iTextureHandle *ft)=0 |
Set the filter texture. | |
virtual iTextureHandle* | GetTextureFilter () const=0 |
Get the filter texture. | |
virtual void | SetFilter (float r, float g, float b)=0 |
Set a color filter (instead of the texture). | |
virtual void | GetColorFilter (float &r, float &g, float &b) const=0 |
Get the current color filter. | |
virtual void | SetWarp (const csMatrix3 &m_w, const csVector3 &v_w_before, const csVector3 &v_w_after)=0 |
Set the warping transformation for this portal in object space and world space. | |
virtual void | SetWarp (const csTransform &t)=0 |
Set the warping transformation for this portal in object space and world space. | |
virtual void | SetMirror (iPolygon3D *iPoly)=0 |
Set warping transformation to mirror around given polygon. | |
virtual const csReversibleTransform& | GetWarp () const=0 |
Get the warping transformation. | |
virtual void | ObjectToWorld (const csReversibleTransform &t)=0 |
Transform the warp matrix from object space to world space. | |
virtual void | HardTransform (const csReversibleTransform &t)=0 |
Hard transform the warp matrix. | |
virtual csVector3 | Warp (const csVector3 &pos) const=0 |
Warp a position in world space. | |
virtual void | WarpSpace (csReversibleTransform &t, bool &mirror) const=0 |
Warp space using the given world->camera transformation. More... | |
virtual bool | CompleteSector (iBase *context)=0 |
Check if the destination sector is NULL and if so call the callback. More... | |
virtual void | CheckFrustum (iFrustumView *lview, int alpha)=0 |
Check frustum visibility of all polygons reachable through this portal. More... |
Polygons that are really `openings' to different areas have a portal associated with them. The portal object defines where the opening leads, how exactly the geometry behind portal is to be handled and so on.
|
Check frustum visibility of all polygons reachable through this portal. Alpha is the alpha value you'd like to use to pass through this portal (0 is no completely transparent, 100 is complete opaque). |
|
Check if the destination sector is NULL and if so call the callback. This function returns false if the portal should not be traversed. |
|
Set the missing sector callback. This will call IncRef() on the callback (and possible DecRef() on the old callback). So make sure you call DecRef() to release your own reference. |
|
Set the portal callback. This will call IncRef() on the callback (and possible DecRef() on the old callback). So make sure you call DecRef() to release your own reference. |
|
Set the sector that this portal points too. To avoid circular references, the sector is not IncRef'ed! |
|
Warp space using the given world->camera transformation. This function modifies the given camera transformation to reflect the warping change.
't' is the transformation from world to camera space. |