interior_style(3G)
NAME
interior_style, bf_interior_style − select fill type and boundary visibility for subsequent filled area primitives and backfacing polygons
SYNOPSIS
C Syntax:
void interior_style(fildes,style,edged);
int fildes,style,edged;
void bf_interior_style(fildes,style,edged);
int fildes,style,edged;
FORTRAN77 Syntax:
subroutine interior_style(fildes,style,edged)
integer∗4 fildes,style,edged
subroutine bf_interior_style(fildes,style,edged)
integer∗4 fildes,style,edged
Pascal Syntax:
procedure interior_style(fildes,style,edged:integer);
procedure bf_interior_style(fildes,style,edged:integer);
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
style
INT_HATCH for a hatched interior;
INT_HOLLOW for a hollow interior;
INT_OUTLINE for an outline using the normal fill color calculations;
INT_PATTERN for a user-defined interior fill pattern;
INT_POINT for a point plot using the normal fill color calculations;
INT_SOLID for a solid filled interior;
INT_TEXTURE for a texture filled interior;
edged Set to TRUE (1) if the boundary is to be drawn.
Set to FALSE (0) for no drawn boundary.
The edge is drawn with the current perimeter attributes or, for backfacing polygons, the current backfacing perimeter color.
Discussion
Hollow style areas are not filled.
Solid style areas are filled with the current fill_color or bf_fill_color.
(Currently, only the HP 98704, 98705, 98731, 98736 drivers support the following two features)
INT_OUTLINE
style areas are drawn by outlining the fill area’s border using all of the normal fill color calculations, including light sourcing and shading. Lines are generated at the intersections of the fill area with any of the current clip limits. This interior style can be used to generate light sourced, shaded wireframe images.
INT_POINT
style areas are drawn as a point plot of the fill area’s vertices using all of the normal fill color calculations, including light sourcing and shading. Points are generated at the intersections of the fill area with any of the current clip limits.
(If edging is enabled, polygon edges will be drawn over outline and point style filling.)
Polygons
Hatched polygons are filled in the current fill color with the hatch attributes defined by hatch_type , hatch_spacing , and hatch_orientation . When hatching is enabled, polygons are replaced by a set of vectors, either parallel or crossing. For this reason, several features normally associated with polygons are not supported when hatching is selected. These include hidden surface removal, lighting models, shading, depth cueing, backface culling, and backface control.
Setting edged equal to TRUE(1) displays a boundary of the current perimeter_color, and will obscure INT_OUTLINE or INT_POINT.
User-defined patterns are specified through the pattern_define call.
The perimeter_type and perimeter_repeat_length routines set the type and repeat length for frontfacing polygon edges.
Backfacing polygons
Backfacing polygons use the specified interior style when bf_control has been called with the attr parameter set to TRUE(1).
INT_PATTERN and INT_HATCH interior styles are not supported for backfacing polygons.
Setting edged equal to TRUE(1) displays a boundary of the current bf_perimeter_color, and will obscure INT_OUTLINE or INT_POINT.
The bf_perimeter_type and bf_perimeter_repeat_length routines set the type and repeat length for backfacing polygon edges.
DEFAULTS
INT_SOLID, not edged.
SEE ALSO
arc(3G). bf_control(3G), circle(3G), define_texture(3G), ellipse(3G), fill_color(3G), hatch_orientation(3G), hatch_spacing(3G), hatch_type(3G), pattern_define(3G), perimeter_color(3G), perimeter_repeat_length(3G), perimeter_type(3G), polygon(3G), polygon_with_data3d(3G), polyhedron_with_data(3G), quadrilateral_mesh_with_data(3G), rectangle(3G), perimeter filter(3G), spline(3G), triangular_strip_with_data(3G), Starbase Graphics Techniques.
Hewlett-Packard Company — HP-UX Release 9.03: April 1994