fainit(3G)
NAME
fainit − prepare for Fast Alpha output, and set up all defaults
SYNOPSIS
#include <fa.h>
int fainit ( gfd, driver );
int gfd;
int driver;
DESCRIPTION
gfd is an integer file descriptor for an gopened device interface.
driver indicates the driver to be used for all subsequent Fast Alpha calls, i.e., indicates a particular display device. See <sb-include>/fa.h for all valid driver names (the actual path name of the directory given in angle brackets depends on the file system structure; see the Graphics Administration Guide for details).
DISCUSSION
This routine is used to set up the default values the Fast Alpha environment will use for future Fast Alpha library calls. It assumes that a gopen (3G) has actually been performed, and that the returned file descriptor is supplied as gfd.
These variables remain in effect until font or color changing library routines are invoked or until an faterminate is encountered. Calls to fasetinfo with proper parameters can alter the state set up by fainit.
SEE ALSO
faterminate(3G), fasetinfo(3G).
DIAGNOSTICS
A value of −1 is returned if gfd or driver is invalid or if fainit otherwise fails. See errno(2) in HP-UX Reference for further information.
Hewlett-Packard Company — HP-UX Release 10.0