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
示例#1
0
        static public ProductionNode CreateProductionNodeFromNative(IntPtr nodeHandle)
        {
            IntPtr  pContext = SafeNativeMethods.xnGetContextFromNodeHandle(nodeHandle);
            Context context  = Context.FromNative(pContext);

            return(context.CreateProductionNodeObject(nodeHandle));
        }