In file include/csengine/curve.h:

## class csCurve : public csObject

> This is an abstract class for all curves in Crystal Space

## Inheritance:

### Public Methods

  ITextureHandle* | GetTextureHandle ()
  virtual bool | IsLightable () Lighting support
  virtual void | SetControlPoint (int index, int control_id) set control index for a control point (referring to the controls in the parent csPolygonSet)
  void | SetTextureHandle (csTextureHandle* h)
  virtual csCurveTesselated* | Tesselate (int res) Tesselate this curve with the given resolution
  virtual | ~csCurve ()

### Inherited from csObject:

### Public Methods

CS_ID GetID()
csObject* GetObj(const csIdType& objtype)
virtual csObject* GetObjectParent()
void ObjAdd(csObject* obj)
csObjIterator ObjGet(const csIdType& objtype)
void ObjRelease(csObject* obj)
void ObjRemove(csObject* obj)

### Private Fields

CS_ID csid_value
csObjTree* objtree

### Private Methods

virtual void SetObjectParent(csObject* parent)

## Documentation

> This is an abstract class for all curves in Crystal Space

`virtual ~csCurve()`

`virtual csCurveTesselated* Tesselate(int res)`
  Tesselate this curve with the given resolution. This function will allocated and return a csCurveTesselated object. the curve is responsible for clamping res to allowed values itself.

`virtual void SetControlPoint(int index, int control_id)`
  set control index for a control point (referring to the controls in the parent csPolygonSet)

`ITextureHandle* GetTextureHandle()`

`void SetTextureHandle(csTextureHandle* h)`

`virtual bool IsLightable()`
  Lighting support. If IsLightable returns true, PosInSpace and Normal should calculate accurate positions and normals for the beziers, regardless of the approximating tesselation method. These are used for lighting. Default behaviour is to allow for unlighted curves. Derive these if you do want them lighted.

Direct child classes:
  csBezier

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