L_VecGetEngine

#include "lvkrn.h"

L_INT EXT_FUNCTION L_VecGetEngine(pVector)

Gets the current vector engine associated with the specified vector handle.

Parameter

Description

pVector

Pointer to a vector handle.

Returns

The current vector engine. Possible values are:

Value

Meaning

VECTOR_ENGINE_GDI

Use GDI rendering. (No lights and shading).

VECTOR_ENGINE_OPENGL

Use OpenGL rendering. (Viewing only, drawings are not editable).

Comments

Returns the current vector engine.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecAttachToWindow

Example

/* This example will show a message box containing the engine currently loaded for the given vector handle. */

void ShowEngine( pVECTORHANDLE pVector )
{
   L_INT nEngine;    /* Current engine */

   /* Get current engine */
   nEngine = L_VecGetEngine(pVector);

   /* Show message box */
   switch( nEngine )
   {
      case VECTOR_ENGINE_GDI:
         MessageBox( NULL, TEXT("Native GDI"), TEXT("Vector Engine"), 0 );
         break;

      case VECTOR_ENGINE_OPENGL:
         MessageBox( NULL, TEXT("OpenGL"), TEXT(" Vector Engine "), 0 );
         break;

   }
}