Class Fox::FXGLObject
In: rdoc-sources/FXGLObject.rb
Parent: FXObject

Basic OpenGL object.

Methods

bounds   canDelete   canDrag   copy   drag   draw   hit   identify   new  

Public Class methods

Return an initialized FXGLObject instance.

Public Instance methods

Return a bounding box (an FXRangef instance) for this object.

Return true if this object can be deleted from the scene.

Return true if this object can be dragged around.

Return a new object which is a copy (i.e. a "clone") of this one.

Drag this object from one position to another. Returns true if the drag was successful.

Parameters:

viewer:the viewer window in which we‘re dragging [FXGLViewer]
fx:x-coordinate for position we‘re dragging from [Integer]
fy:y-coordinate for position we‘re dragging from [Integer]
tx:x-coordinate for position we‘re dragging to [Integer]
ty:y-coordinate for position we‘re dragging to [Integer]

Draw this object in a viewer.

Parameters:

viewer:the viewer window into which we‘re drawing [FXGLViewer]

Draw this object for hit-testing purposes.

Parameters:

viewer:the viewer window into which we‘re drawing [FXGLViewer]

Identify sub-object given path, where path is a list of integer names pushed onto the stack during hit testing.

Parameters:

path:an array of integers [Array]

[Validate]