CrystalSpace

Public API Reference

iRenderView Struct Reference
[Views & Cameras]

This interface represents all information needed to render some object in a current draw context. More...

#include <iengine/rview.h>

Inheritance diagram for iRenderView:

List of all members.

Public Member Functions

virtual void CreateRenderContext ()=0
 Create a new render context.
virtual void DestroyRenderContext (csRenderContext *context)=0
 Destroy a specific render context (and unlink it from the previous-links).
virtual iCameraGetCamera ()=0
 Get the current camera.
virtual iClipper2DGetClipper ()=0
 Get the 2D clipper for this view.
virtual uint GetCurrentFrameNumber () const =0
 Get the number of the current frame.
virtual iEngineGetEngine ()=0
 Get the engine.
virtual void GetFrustum (float &lx, float &rx, float &ty, float &by)=0
 Get the frustum.
virtual iGraphics2DGetGraphics2D ()=0
 Get the 2D graphics subsystem.
virtual iGraphics3DGetGraphics3D ()=0
 Get the 3D graphics subsystem.
virtual iPortalGetLastPortal ()=0
 Get the portal we last traversed through.
virtual iCameraGetOriginalCamera () const =0
 Get the original camera for this render view.
virtual iSectorGetPreviousSector ()=0
 Get previous sector.
virtual csRenderContextGetRenderContext ()=0
 Get the current render context.
virtual iSectorGetThisSector ()=0
 Get current sector.
virtual void RestoreRenderContext ()=0
 Restore a render context.


Detailed Description

This interface represents all information needed to render some object in a current draw context.

Main creators of instances implementing this interface:

Main users of this interface:

Definition at line 178 of file rview.h.


Member Function Documentation

virtual void iRenderView::CreateRenderContext (  )  [pure virtual]

Create a new render context.

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

virtual void iRenderView::DestroyRenderContext ( csRenderContext context  )  [pure virtual]

Destroy a specific render context (and unlink it from the previous-links).

virtual iCamera* iRenderView::GetCamera (  )  [pure virtual]

Get the current camera.

virtual iClipper2D* iRenderView::GetClipper (  )  [pure virtual]

Get the 2D clipper for this view.

virtual uint iRenderView::GetCurrentFrameNumber (  )  const [pure virtual]

Get the number of the current frame.

virtual iEngine* iRenderView::GetEngine (  )  [pure virtual]

Get the engine.

virtual void iRenderView::GetFrustum ( float &  lx,
float &  rx,
float &  ty,
float &  by 
) [pure virtual]

Get the frustum.

virtual iGraphics2D* iRenderView::GetGraphics2D (  )  [pure virtual]

Get the 2D graphics subsystem.

virtual iGraphics3D* iRenderView::GetGraphics3D (  )  [pure virtual]

Get the 3D graphics subsystem.

virtual iPortal* iRenderView::GetLastPortal (  )  [pure virtual]

Get the portal we last traversed through.

virtual iCamera* iRenderView::GetOriginalCamera (  )  const [pure virtual]

Get the original camera for this render view.

This is the camera before any space warping portals.

virtual iSector* iRenderView::GetPreviousSector (  )  [pure virtual]

Get previous sector.

virtual csRenderContext* iRenderView::GetRenderContext (  )  [pure virtual]

Get the current render context.

virtual iSector* iRenderView::GetThisSector (  )  [pure virtual]

Get current sector.

virtual void iRenderView::RestoreRenderContext (  )  [pure virtual]

Restore a render context.

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


The documentation for this struct was generated from the following file:

Generated for Crystal Space 1.9 by doxygen 1.5.8