| Class | Fox::FXGLSphere |
| In: |
lib/fox16/glshapes.rb
|
| Parent: | FXGLShape |
| SLICES_NUMBER | = | 20 | Sphere fidelity | |
| STACKS_NUMBER | = | 20 |
| radius | [RW] | Sphere radius [Float] |
| slices | [RW] | Number of slices (default is 20) [Integer] |
| stacks | [RW] | Number of stacks (default is 20) [Integer] |
Returns an initialized FXGLSphere instance.
One option is to initialize the sphere with a specified origin and radius:
aSphere = FXGLSphere.new(x, y, z, r)
If left unspecified, the radius (r) defaults to 1.0.
Another option is to initialize the sphere with a specified origin, radius and material:
aSphere = FXGLSphere.new(x, y, z, r, material)
where the material is an FXMaterial instance.