vogle_curses(vogle) Vogle vogle_curses(vogle)
NAME
vogle_curses - a VOGLE renderer with a curses device
driver
DESCRIPTION
The vogle_curses class renders an image defined with LYMB
objects (camera, lights, actors and modellers) using the
public domain VOGLE rendering library on a curses device,
that is, a tty device supported by the Unix curses
library.
SUPERCLASS
vogle_curses
MESSAGES
device_name?
Returns the string "curses".
expose!
Overrides inherited method. The expose! message is
sent after each image has been drawn by the renderer class. It is overridden here to exit VOGLE
and set initialized_off!. This allows the user to
interrupt VOGLE when it is using curses, which can
be very slow, especially for animations. A `.' is
printed in the lower-left corner of the display
signalling that the image is complete. Pressing any
key will allow the system to continue.
EXAMPLES
The following LYMB script demonstrates how an image is
defined in LYMB. A camera is created which describes the
view. A light is created which provides illumination. A
geometric object is defined using a modeller and an actor.
Finally, a renderer is created and informed about the elements (camera, light, actor) that comprise the image. The
image is drawn by sending a render! to the rendering
instance.
camera new: acamera
position=(8,8,8)
focal_point=(0.0,0.0,0.0)
view_angle=30
on!
;
light new: alight
position=(10,5,8)
on!
;
cylinder_modeller new: cylinder_model;
actor new: cylinder
color=(1,0,0)
modeller=cylinder_model
;
vogle_curses new: arenderer
actors=cylinder
cameras=acamera
lights=alight
;
arenderer render!;
SEE ALSO
actor, camera, light, renderer, model, phigs, gl, starbase, vogle_modeller, vogle_ps, vogle_sun, vogle_tek,
vogle_x11
NOTES AND BUGS
The curses device is not supported on all VOGLE-supported
architectures.
Color is not supported using vogle_curses.
Please send comments and suggestions toconsult@rpi.edu