LVectorBase::GetEngine

#include "ltwrappr.h"

virtual L_INT LVectorBase::GetEngine(L_VOID)

Gets the current vector engine.

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.

Comments

Returns the current vector engine.

The default vector engine is the GDI.

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:

LVectorBase::SetEngine

Topics:

Getting and Setting Global Vector Properties

 

Vector Images: Viewing a Vector Image

 

Vector Images: Getting and Setting General Information

Example

//Example23
L_VOID Example23(HWND hWnd)
{
   L_TCHAR L_FAR *lpszTemp;  

   LVectorBase Vector;
   Vector.Load(TEXT("test.dxf"));
   Vector.AttachToWindow(hWnd);


   L_INT nEngine = Vector.GetEngine();
   switch(nEngine)
   {
   case VECTOR_ENGINE_GDI:
      lpszTemp = TEXT("VECTOR_ENGINE_GDI");
      break;
   case VECTOR_ENGINE_OPENGL:
      lpszTemp = TEXT("VECTOR_ENGINE_OPENGL");
      break;
   }
   MessageBox(hWnd, lpszTemp, TEXT(""), MB_OK);
}