createGeometryConversion

This call is deprecated, please use call owlBuildInstance.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "createGeometryConversion")]
public static extern void x86_createGeometryConversion(Int32 instance, out Int64 owlInstance);

[DllImport(enginedll, EntryPoint = "createGeometryConversion")]
public static extern void x64_createGeometryConversion(Int64 instance, out Int64 owlInstance);

public static void createGeometryConversion(Int64 instance, out Int64 owlInstance)
		{
			if (IntPtr.Size == 4)
			{
				x86_createGeometryConversion((Int32)instance, out Int64 _owlInstance);
				owlInstance = _owlInstance;
			}
			else
			{
				x64_createGeometryConversion(instance, out owlInstance);
			}
		}    

Property instance

Size: 32 bit / 4 byte (value)
...

Property owlInstance

Size: 32 bit / 4 byte (reference)
...