L_VecSetPolygonMode

Summary

Sets the current polygon drawing mode.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecSetPolygonMode(pVector, nMode)

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle.

L_INT nMode

The polygon drawing mode to set. Possible values are:

Value Meaning
VECTOR_POLYGON_POINT Draw only the edges 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.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function is not supported in the DirectX engine.

Required DLLs and Libraries

See Also

Functions

Example

This example toggles the polygon mode between Point, Line and Fill.

L_INT VecSetPolygonModeExample(pVECTORHANDLE pVector) 
{ 
   L_INT nRet = FAILURE; 
   L_INT nMode;   /* Current polygon mode */ 
 
   nMode = L_VecGetPolygonMode( pVector ); 
 
   switch( nMode ) 
   { 
      case VECTOR_POLYGON_POINT: 
         nRet = L_VecSetPolygonMode( pVector, VECTOR_POLYGON_LINE ); 
         break; 
 
      case VECTOR_POLYGON_LINE : 
         nRet = L_VecSetPolygonMode( pVector, VECTOR_POLYGON_FILL ); 
         break; 
 
      case VECTOR_POLYGON_FILL : 
         nRet = L_VecSetPolygonMode( pVector, VECTOR_POLYGON_FILL_RASTER_ALWAYS ); 
         break; 
 
      case VECTOR_POLYGON_FILL_RASTER_ALWAYS : 
         nRet = L_VecSetPolygonMode( pVector, VECTOR_POLYGON_POINT ); 
         break; 
 
      default: 
         break; 
   } 
 
   return nRet; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.