Class Fox::FXGLLine
In: lib/fox12/glshapes.rb
Parent: FXGLObject

OpenGL line object

Methods

bounds   draw   hit   new  

Attributes

fm  [RW]  Starting point for line [FXGLPoint]
to  [RW]  End point for line [FXGLPoint]

Public Class methods

Return an initialized FXGLLine instance.

If no arguments are passed to new, the initial starting and ending points for the line are (-0.5, 0.0, 0.0) and (0.5, 0.0, 0.0), respectively. You can specify different initial start and end points by passing in another FXGLLine instance from which to copy the start and end point values, e.g.

    aLine = FXGLLine.new(anotherLine)

or by passing in the x, y and z coordinates individually:

    aLine = FXGLLine.new(x0, y0, z0, x1, y1, z1)

Public Instance methods

Return the bounding box (an FXRangef instance) for this line.

Draw this line into viewer (an FXGLViewer instance).

Perform hit-test for this line in viewer (an FXGLViewer instance).

[Validate]