Previous Next Up Title Contents Index Functions Index Top Library

SET ANTIALIASING IDENTIFIER

PXSET_ANTIALIASING_ID


CALL SEQUENCE

void pxset_antialiasing_id(
)

PHIGS STATE

(PHOP,*,STOP,*)

EFFECT

A GSE element is inserted in the open structure after element pointer or replaces the element indicated by element pointer, depending on the edit mode value. Element pointer is updated and points to the GSE structure element. The values specified in the function are associated with the element.

The antialiasing identifier is defined as follows:

PANTIALIASING_ID_ON activate antialiasing for lines and edges

PANTIALIASING_ID_OFF deactivate antialiasing

PANTIALIASING_ID_LINE activate antialiasing for lines

PANTIALIASING_ID_MARKER activate antialiasing for markers

PANTIALIASING_ID_TEXT activate antialiasing for text

PANTIALIASING_ID_SURFACE activate antialiasing for surfaces

PANTIALIASING_ID_EDGE activate antialiasing for edges

The default value is PANTIALIASING_ID_ON which means antialiasing is activated for both lines and edges. It is equivalent to PANTIALIASING_ID_LINE | PANTIALIASING_ID_EDGE.

If you want activate antialiasing for all subsequent primitives, use the identifier as follows :

- PANTIALIASING_ID_LINE | PANTIALIASING_ID_MARKER | PANTIALIASING_ID_TEXT |

- PANTIALIASING_ID_SURFACE | PANTIALIASING_ID_EDGE

When an element of this type is interpreted, the current antialiasing identifier entry in the traversal state list is set to the value associated with the element. This value is used when displaying subsequent primitives to reduce the line or surface aliasing if ANTIALIASING MODE is PANTIALIASING_MODE_ON.

This attribute is workstation dependent. See driver documentation for more details.

Listing of pxset_antialiasing_id function is as follows :

void pxset_antialiasing_id(

Pint antialiasing_id

)

{

Pgse_data gse_data;

gse_data.gse_r6.antialiasing_id = antialiasing_id ;

pgse (PGSE_ID_ANTIALIASING_ID, &gse_data);

}

ERRORS

5
Ignoring function, function requires state (PHOP,*, STOP,*)

SEE ALSO

Generalized structure element, see pgse

Set antialiasing mode (ext), see pxset_antialiasing_mode


Previous Next Up Title Contents Index Functions Index Top Library