CS::Geometry::Capsule Class Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
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 void | Append (iGeneralFactoryState *state)
| Append this primitive to the given factory.
virtual bool | Append (iMeshFactoryWrapper *factory)
| 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 void CS::Geometry::Capsule::Append | ( | iGeneralFactoryState * | factory | ) | `[virtual]`

Append this primitive to the given factory.

Implements CS::Geometry::Primitive.

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.

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:

- cstool/genmeshbuilder.h