CrystalSpace

Public API Reference

CS::Geometry::Capsule Class Reference

A capsule. More...

#include <cstool/genmeshbuilder.h>

Inheritance diagram for CS::Geometry::Capsule:

List of all members.

Public Member Functions

virtual bool Append (iMeshFactoryWrapper *factory)
 Append this primitive to the given factory.
virtual void Append (iGeneralFactoryState *state)
 Append this primitive to the given factory.
 Capsule (float l, float r, uint sides)
 Generate a capsule of given length and radius.
void SetMapper (TextureMapper *mapper)
 Set the mapper.

Detailed Description

A capsule.

Definition at line 233 of file genmeshbuilder.h.


Constructor & Destructor Documentation

CS::Geometry::Capsule::Capsule ( float  l,
float  r,
uint  sides 
)

Generate a capsule of given length and radius.

Parameters:
l Capsule length.
r Capsule radius.
sides Number of sides.

Member Function Documentation

virtual bool CS::Geometry::Capsule::Append ( iMeshFactoryWrapper factory  )  [inline, virtual]

Append this primitive to the given factory.

Returns false if the primitive is not a genmesh.

Reimplemented from CS::Geometry::Primitive.

Definition at line 259 of file genmeshbuilder.h.

virtual void CS::Geometry::Capsule::Append ( iGeneralFactoryState factory  )  [virtual]

Append this primitive to the given factory.

Implements CS::Geometry::Primitive.

void CS::Geometry::Capsule::SetMapper ( TextureMapper mapper  )  [inline]

Set the mapper.

There is no default mapper. You have to specify one.

Definition at line 253 of file genmeshbuilder.h.


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

Generated for Crystal Space 2.0 by doxygen 1.6.1