FromNative() public static method

Creates a managed Context object to wrap a native one.
public static FromNative ( IntPtr pContext ) : Context
pContext IntPtr A pointer to the native object
return Context
Ejemplo n.º 1
0
        static public ProductionNode CreateProductionNodeFromNative(IntPtr nodeHandle)
        {
            IntPtr  pContext = SafeNativeMethods.xnGetContextFromNodeHandle(nodeHandle);
            Context context  = Context.FromNative(pContext);

            return(context.CreateProductionNodeObject(nodeHandle));
        }