![]() |
Public API Reference |
A container for portals. More...
#include <iengine/portalcontainer.h>
Public Member Functions | |
| virtual void | ComputeScreenPolygons (iRenderView *rview, csVector2 *verts2D, csVector3 *verts3D, size_t vertsSize, size_t *numVerts, int viewWidth, int viewHeight)=0 |
| Compute the normalized screen-space and camera-space polygons for all portals. | |
| virtual iPortal * | CreatePortal (csVector3 *vertices, int num)=0 |
| Create a new portal. | |
| virtual void | Draw (iRenderView *rview)=0 |
| Render the portal container. | |
| virtual iPortal * | GetPortal (int idx) const =0 |
| Get a specific portal. | |
| virtual int | GetPortalCount () const =0 |
| Get the number of portals in this contain. | |
| virtual size_t | GetTotalVertexCount () const =0 |
| Get the total amount of vertices used by all portals. | |
| virtual void | RemovePortal (iPortal *portal)=0 |
| Remove a portal. | |
A container for portals.
Main creators of instances implementing this interface:
Main ways to get pointers to this interface:
Main users of this interface:
Definition at line 51 of file portalcontainer.h.
| virtual void iPortalContainer::ComputeScreenPolygons | ( | iRenderView * | rview, |
| csVector2 * | verts2D, | ||
| csVector3 * | verts3D, | ||
| size_t | vertsSize, | ||
| size_t * | numVerts, | ||
| int | viewWidth, | ||
| int | viewHeight | ||
| ) | [pure virtual] |
Compute the normalized screen-space and camera-space polygons for all portals.
| rview | Render view for which to compute the screen space polys. |
| verts2D | Output buffer receiving the normalized screen space coordinates. |
| verts3D | Output buffer receiving the camera space coordinates corresponding to the screen space coordinates. |
| vertsSize | Size of the verts buffer. |
| numVerts | Output buffer receiving the number of vertices in each polygon. |
| viewWidth | Width of the view in which the polys are computed. |
| viewHeight | Height of the view in which the polys are computed. |
| virtual iPortal* iPortalContainer::CreatePortal | ( | csVector3 * | vertices, |
| int | num | ||
| ) | [pure virtual] |
Create a new portal.
| virtual void iPortalContainer::Draw | ( | iRenderView * | rview | ) | [pure virtual] |
Render the portal container.
| virtual iPortal* iPortalContainer::GetPortal | ( | int | idx | ) | const [pure virtual] |
Get a specific portal.
| virtual int iPortalContainer::GetPortalCount | ( | ) | const [pure virtual] |
Get the number of portals in this contain.
| virtual size_t iPortalContainer::GetTotalVertexCount | ( | ) | const [pure virtual] |
Get the total amount of vertices used by all portals.
| virtual void iPortalContainer::RemovePortal | ( | iPortal * | portal | ) | [pure virtual] |
Remove a portal.