glEdgeFlag

王朝百科·作者佚名  2010-03-06
窄屏简体版  字體: |||超大  

glEdgeFlag

NAME

glEdgeFlag, glEdgeFlagv - flag edges as either boundary or nonboundary

C SPECIFICATION

void glEdgeFlag( GLboolean flag )

PARAMETERS

flag ? Specifies the current edge flag value, either true or false.

C SPECIFICATION

void glEdgeFlagv( const GLboolean *flag )

PARAMETERS

flag ? Specifies a pointer to an array that contains a single Boolean element, which replaces the current edge flag value.

DESCRIPTION

Each vertex of a polygon, separate triangle, or separate quadrilateral specified between a glBegin/glEnd pair is marked as the start of either a boundary or nonboundary edge. If the current edge flag is true when the vertex is specified, the vertex is marked as the start of a boundary edge. Otherwise, the vertex is marked as the start of a nonboundary edge. glEdgeFlag sets the edge flag to true if flag is nonzero, false otherwise.

The vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of the value of the edge flag.

Boundary and nonboundary edge flags on vertices are significant only if GL_POLYGON_MODE is set to GL_POINT or GL_LINE. See "glPolygonMode" .

Initially, the edge flag bit is true.

NOTES

The current edge flag can be updated at any time. In particular, glEdgeFlag can be called between a call to glBegin and the corresponding call to glEnd.

ASSOCIATED GETS

glGet with argument GL_EDGE_FLAG

SEE ALSO

"glBegin" , "glPolygonMode"

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航