In file include/csengine/csview.h:

## class csView : public csBase

> The csView class encapsulates the top-level Crystal Space renderer interface

## Inheritance:

### Public Methods

  void | AddViewVertex (int x, int y) Add a vertex to clipping polygon (non-rectangular clipping).
  void | ClearView () Clear clipping polygon.
  | csView (csWorld *iWorld, IGraphics3D* ig3d) Constructor.
  void | Draw () Draw world as seen from the camera.
  csCamera* | GetCamera () Get current camera.
  csClipper* | GetClipper () Return the clipper.
  csWorld* | GetWorld () Get world.
  void | SetCamera (csCamera* c) Set current camera.
  void | SetRectangle (int x, int y, int w, int h) Set clipping rectangle.
  void | SetSector (csSector *sector) Set sector for the current camera.
  | ~csView () Destructor.

## Documentation

> The csView class encapsulates the top-level Crystal Space renderer interface. It is basicly a camera and a clipper.

`csView(csWorld *iWorld, IGraphics3D* ig3d)`
  Constructor.

`~csView()`
  Destructor.

`csWorld* GetWorld()`
  Get world.

`csCamera* GetCamera()`
  Get current camera.

`void SetCamera(csCamera* c)`
  Set current camera.

`void ClearView()`
  Clear clipping polygon.

`void SetRectangle(int x, int y, int w, int h)`
  Set clipping rectangle.

`void AddViewVertex(int x, int y)`
  Add a vertex to clipping polygon (non-rectangular clipping).

`void Draw()`
  Draw world as seen from the camera.

`void SetSector(csSector *sector)`
  Set sector for the current camera.

`csClipper* GetClipper()`
  Return the clipper.

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de