Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iFrustumView Struct Reference

This structure represents all information needed for the frustum visibility calculator. More...

#include <fview.h>

Inheritance diagram for iFrustumView:

iBase csFrustumView List of all members.

Public Methods

virtual csFrustumContextGetFrustumContext () const=0
 Get the current frustum context.

virtual void CreateFrustumContext ()=0
 Create a new frustum context. More...

virtual csFrustumContextCopyFrustumContext ()=0
 Create a copy of the current frustum context and return it. More...

virtual void SetFrustumContext (csFrustumContext *ctxt)=0
 This function is similar to CreateFrustumContext() but it sets the given frustum context instead. More...

virtual void RestoreFrustumContext (csFrustumContext *original)=0
 Restore a frustum context. More...

virtual void CallNodeFunction (csOctreeNode *onode, bool vis)=0
 Call the node function.

virtual void CallPolygonFunction (csObject *poly, bool vis)=0
 Call the polygon function.

virtual void CallCurveFunction (csObject *curve, bool vis)=0
 Call the curve function.

virtual float GetRadius ()=0
 Get the radius.

virtual bool ThingShadowsEnabled ()=0
 Return true if shadowing for things is enabled.

virtual bool CheckShadowMask (unsigned int mask)=0
 Check if a mask corresponds with the shadow mask.

virtual bool CheckProcessMask (unsigned int mask)=0
 Check if a mask corresponds with the process mask.

virtual void StartNewShadowBlock ()=0
 Start new shadow list for this frustum.

virtual void SetUserdata (iFrustumViewUserdata *data)=0
 Set or clear userdata.

virtual iFrustumViewUserdataGetUserdata ()=0
 Get userdata.


Detailed Description

This structure represents all information needed for the frustum visibility calculator.


Member Function Documentation

csFrustumContext * iFrustumView::CopyFrustumContext ( ) [pure virtual]
 

Create a copy of the current frustum context and return it.

This can be used to later put it back. Use SetFrustumContext() for this.

Reimplemented in csFrustumView.

void iFrustumView::CreateFrustumContext ( ) [pure virtual]
 

Create a new frustum context.

This is typically used when going through a portal. Note that you should remember the old frustum context if you want to restore it later. The frustum context will get all the values from the current context (with SCF references properly incremented).

Reimplemented in csFrustumView.

void iFrustumView::RestoreFrustumContext ( csFrustumContext * original ) [pure virtual]
 

Restore a frustum context.

Use this to restore a previously overwritten frustum context. This function will take care of properly cleaning up the current frustum context.

Reimplemented in csFrustumView.

void iFrustumView::SetFrustumContext ( csFrustumContext * ctxt ) [pure virtual]
 

This function is similar to CreateFrustumContext() but it sets the given frustum context instead.

Also restore with RestoreFrustumContext().

Reimplemented in csFrustumView.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000