vogle_x11(vogle) Vogle vogle_x11(vogle)
NAME
vogle_x11 - a VOGLE renderer with an X Windows device
driver
DESCRIPTION
The vogle_x11 class renders an image defined with LYMB
objects (camera, lights, actors and modellers) using the
public domain VOGLE rendering library producing output in
an X Window.
SUPERCLASS
vogle_x11
VARIABLES
display_name
The name of the xdisplay object defining the connection to the X server. The default is "xdisplay"
(the class).
MESSAGES
display_name[=?]
Set/get the name of the xdisplay object.
device_name?
Returns the string "X11".
display_id[=?]
Set/get the ID of the X display connection. If this
is not set by the user, VOGLE will open a connection and set this variable.
window_id[=?]
Set/get the ID of the X window where images will be
displayed. If this is not set by the user, VOGLE
will create a window and set this variable to the
window's ID.
id?
An alias for window_id? since most X objects
respond to both forms.
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_x11 new: arenderer
actors=cylinder
cameras=acamera
lights=alight
;
arenderer render!;
SEE ALSO
actor, camera, light, renderer, model, phigs, gl, starbase, vogle_modeller, vogle_curses, vogle_sun, vogle_tek,
vogle_ps
NOTES AND BUGS
The display and window ID variables are really global
variables inside the VOGLE library. Thus if multiple
instances of vogle_x11 exist, the window_id will need to
be set immediately prior to a render! (to get output in a
separate window). Otherwise, the VOGLE library will have
the X Window ID of the last vogle_x11 instance.
Please send comments and suggestions toconsult@rpi.edu