iRenderView Struct Reference
[Views & Cameras]
This interface represents all information needed to render some object in a current draw context.
More...
#include <rview.h>
Inheritance diagram for iRenderView:

Public Methods | |
virtual csRenderContext * | GetRenderContext ()=0 |
Get the current render context. | |
virtual iEngine * | GetEngine ()=0 |
Get the engine. | |
virtual iGraphics2D * | GetGraphics2D ()=0 |
Get the 2D graphics subsystem. | |
virtual iGraphics3D * | GetGraphics3D ()=0 |
Get the 3D graphics subsystem. | |
virtual void | GetFrustum (float &lx, float &rx, float &ty, float &by)=0 |
Get the frustum. | |
virtual iClipper2D * | GetClipper ()=0 |
Get the 2D clipper for this view. | |
virtual iCamera * | GetCamera ()=0 |
Get the current camera. | |
virtual void | CalculateFogPolygon (G3DPolygonDP &poly)=0 |
@@OR@@ Calculate the fog information in the given G3DPolygonDP structure. | |
virtual void | CalculateFogPolygon (G3DPolygonDPFX &poly)=0 |
@@OR@@ Calculate the fog information in the given G3DPolygonDPFX structure. | |
virtual void | CalculateFogMesh (const csTransform &tr_o2c, G3DTriangleMesh &mesh)=0 |
@@OR@@ Calculate the fog information in the given G3DTriangleMesh structure. | |
virtual void | CalculateFogMesh (const csTransform &tr_o2c, G3DPolygonMesh &mesh)=0 |
@@OR@@ Calculate the fog information in the given G3DPolygonMesh structure. | |
virtual void | CalculateClipSettings (uint32 frustum_mask, int &clip_portal, int &clip_plane, int &clip_z_plane)=0 |
Given a frustum_mask, calculate the clip settings. | |
virtual bool | TestBSphere (const csReversibleTransform &w2c, const csSphere &sphere)=0 |
Test if the given bounding sphere (in world space coordinates) is visible in this render view. | |
virtual bool | ClipBBox (csPlane3 *planes, uint32 &frustum_mask, const csBox3 &obox, int &clip_portal, int &clip_plane, int &clip_z_plane)=0 |
Check if the object space bounding box of an object is visible in this render view. | |
virtual void | SetupClipPlanes (const csReversibleTransform &tr_o2c, csPlane3 *planes, uint32 &frustum_mask)=0 |
Setup clipping planes in object space. | |
virtual iSector * | GetThisSector ()=0 |
Get current sector. | |
virtual iSector * | GetPreviousSector ()=0 |
Get previous sector. | |
virtual iPortal * | GetLastPortal ()=0 |
Get the portal we last traversed through. | |
virtual iCamera * | GetOriginalCamera () const=0 |
Get the original camera for this render view. | |
virtual uint | GetCurrentFrameNumber () const=0 |
Get the number of the current frame. |
Detailed Description
This interface represents all information needed to render some object in a current draw context.
Definition at line 174 of file rview.h.
Member Function Documentation
|
Given a frustum_mask, calculate the clip settings.
|
|
@@OR@@ Calculate the fog information in the given G3DPolygonMesh structure. This function assumes the fog array is already preallocated and the rest of the structure should be filled in. This function will take care of correctly enabling/disabling fog. |
|
@@OR@@ Calculate the fog information in the given G3DTriangleMesh structure. This function assumes the fog array is already preallocated and the rest of the structure should be filled in. This function will take care of correctly enabling/disabling fog. |
|
@@OR@@ Calculate the fog information in the given G3DPolygonDPFX structure.
|
|
@@OR@@ Calculate the fog information in the given G3DPolygonDP structure.
|
|
Check if the object space bounding box of an object is visible in this render view. If true is returned (visible) then clip_plane, clip_z_plane, and clip_portal will be set to the right value depending on wether or not clipping is wanted. This function also does far plane clipping. Use SetupClipPlanes() to get the clipping planes for this function. The frustum_mask will be modified according to all clip planes that were relevant for the given box. That can be used to hierarchically cull smaller objects. |
|
Get the current camera.
|
|
Get the 2D clipper for this view.
|
|
Get the number of the current frame.
|
|
Get the engine.
|
|
Get the frustum.
|
|
Get the 2D graphics subsystem.
|
|
Get the 3D graphics subsystem.
|
|
Get the portal we last traversed through.
|
|
Get the original camera for this render view. This is the camera before any space warping portals. |
|
Get previous sector.
|
|
Get the current render context.
|
|
Get current sector.
|
|
Setup clipping planes in object space. The input arrays for planes should each be able to hold 10 planes. Returns a mask that you can use for the csIntersect3::BoxFrustum() function. |
|
Test if the given bounding sphere (in world space coordinates) is visible in this render view. The optional will transform world to camera space. |
The documentation for this struct was generated from the following file:
- iengine/rview.h
Generated for Crystal Space by doxygen 1.2.18