|
Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Builds a circular shape. More...
#include <ProceduralShapeGenerators.h>
Public Member Functions | |
| CircleShape () | |
| Default constructor. More... | |
| CircleShape & | setRadius (Ogre::Real radius) |
| Sets radius. More... | |
| CircleShape & | setNumSeg (unsigned int numSeg) |
| Sets number of segments. More... | |
| Shape | realizeShape () |
| Builds the shape. More... | |
Builds a circular shape.
| Procedural::CircleShape::CircleShape | ( | ) |
Default constructor.
| Shape Procedural::CircleShape::realizeShape | ( | ) |
Builds the shape.
References Procedural::Shape::addPoint(), Procedural::Shape::close(), and Ogre::Math::TWO_PI.
| CircleShape& Procedural::CircleShape::setNumSeg | ( | unsigned int | numSeg | ) |
Sets number of segments.
| Ogre::InvalidParametersException | Minimum of numSeg is 1 |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
| CircleShape& Procedural::CircleShape::setRadius | ( | Ogre::Real | radius | ) |
Sets radius.
| Ogre::InvalidParametersException | Radius must be larger than 0! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
1.8.17