Summary of
VOGLE Functions
B
TheVoglereference manual is available from the Internet site hosting this
book: http://dehesa.freeshel.org/vogle. The manual pages explain the
syntax and arguments of theVoglegraphics functions in C or C++,Fortran
77 ,andPascal. A summary is given in this appendix.
Setting up windows
prefposition(x, y) Specify preferred position
of the next window
prefsize(width, height) Specify preferred width and height
of the next window
Device control
vinit(device) Initialize the graphics device
For example, device can be “X11” or “postscript”
vexit() ExitVogle(last routine called)
and reset the window or terminal
voutput(”filotimo”) Redirect output fornextvinit
to file namedfilotimo
vnewdev(device) Reinitialize to use a new device
char * vgetdev(device) Returns the name of the current device
int getdepth() Returns the number of bit planes (color planes)
The number of colors displayable by the device
is 2 (nplanes−1).
Color
color(hroma) Set the current color: hroma can be:
BLACK, RED, GREEN, YELLOW
BLUE, MAGENTA, CYAN, WHITE
mapped as a structure to: 0, 1, ... 7
clear() Clear screen to current color
mapcolor(indx, red, green, blue) Set color map index