csRenderContext Class ReferenceThis structure keeps track of the current render context.
[Views & Cameras]
|If the following variable is true then a fog_info was added in this recursion level. |
|This variable holds the plane of the portal through which the camera is looking. |
|A set of clip planes for this context in world space. |
|A frustum masks which indicates which planes of clip_planes are used. |
|This unique id can be used to check if you are still in the same render context. |
|If true then we have to clip all objects to the portal frustum (either in 2D or 3D). |
|If true then we clip all objects to 'clip_plane'. |
|A number indicating the recursion level we are in. |
|Every fogged sector we encountered results in an extra structure in the following list. |
|csRef< iCamera >||icamera|
|The current camera. |
|csRef< iClipper2D >||iview|
|The 2D polygon describing how everything drawn inside should be clipped. |
|The last portal we traversed through (or 0 if first sector). |
|A pointer back to the previous render context. |
|The previous sector (or 0 if the first sector). |
|This sector. |
Detailed DescriptionThis structure keeps track of the current render context.
It is used by iRenderView. When recursing through a portal a new render context will be created and set in place of the old one.
Member Data Documentation
If true then we have to clip all objects to the portal frustum (either in 2D or 3D).
Normally this is not needed but some portals require this. If do_clip_plane is true then the value of this field is also implied to be true. The top-level portal should set do_clip_frustum to true in order for all geometry to be correctly clipped to screen boundaries.
If true then we clip all objects to 'clip_plane'.
In principle one should always clip to 'clip_plane'. However, in many cases this is not required because portals mostly arrive in at the boundaries of a sector so there can actually be no objects after the portal plane. But it is possible that portals arive somewhere in the middle of a sector (for example with BSP sectors or with Things containing portals). In that case this variable will be set to true and clipping to 'clip_plane' is required.
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3