L_LVKRN_API L_INT L_VecGetPolygonMode(pVector)
Gets the current polygon drawing mode.
Pointer to a vector handle.
The current polygon drawing mode. Possible values are:
Value | Meaning |
---|---|
VECTOR_POLYGON_POINT | Draw only the edge points on polygons and lines. |
VECTOR_POLYGON_LINE | Draw as a wire-frame. |
VECTOR_POLYGON_FILL | Draw solid polygons. |
VECTOR_POLYGON_FILL_RASTER_ALWAYS | Draw solid polygons and always draw raster objects. |
This function is not supported in the GDI engine.
Required DLLs and Libraries
This example will show the current polygon drawing mode in a message box.
L_LTVKRNTEX_API L_INT VecGetPolygonModeExample(pVECTORHANDLE pVector)
{
L_INT nMode; /* Current polygon mode */
nMode = L_VecGetPolygonMode( pVector );
switch( nMode )
{
case VECTOR_POLYGON_POINT:
MessageBox( NULL, TEXT("Point"), TEXT("Polygon Mode"), 0 );
break;
case VECTOR_POLYGON_LINE :
MessageBox( NULL, TEXT("Line"), TEXT("Polygon Mode"), 0 );
break;
case VECTOR_POLYGON_FILL :
MessageBox( NULL, TEXT("Fill"), TEXT("Polygon Mode"), 0 );
break;
case VECTOR_POLYGON_FILL_RASTER_ALWAYS :
MessageBox( NULL, TEXT("Fill"), TEXT("Polygon Mode with Raster Always"), 0 );
break;
}
return SUCCESS;
}