SplineUtil Namespace Reference
Detailed Description
Spline utility namespace.
This is used for generating pretty splines so you can get nice curved surfaces. However, many polygons are required, so use these only when needed.
Function Documentation
Function for drawing the spline.
Use this if you only have a SplinePatch object and want to specify all of the parameters
- Parameters:
-
| camPos | This parameter is the point at which each polygon will face. |
Usually, you want all of the polygons of the spline to be facing the camera, so the camera pos is a good bet for this parameter.
- Parameters:
-
| numSegments | The SplineUtil will cut up the spline into numSegments segments. |
More segments means more smoothness, but less framerate.
- Parameters:
-
| width | The width of the spline beam. |
| spline | The SplinePatch data structure for the given spline beam. |
- See also:
- SplinePatch
- Parameters:
-
| uvOffset | This should be called textureOffset, since it is only an offset along the spline and not perpendicular. This parameter can be used for "sliding" the spline texture down the spline shaft to make it a little more dynamic. |
| numTexRep | This is the scale of the texture so you can squish or stretch it. |
void SplineUtil::drawSplineBeam |
( |
SplineBeamInfo & |
sbi |
) |
|
|