private static IntPtr CreateBasedOn(IRGenerator basedOn, string name) { IntPtr handle; UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject, basedOn.InternalObject, name, out handle); WrapperUtils.CheckStatus(status); return handle; }
private static IntPtr CreateBasedOn(IRGenerator basedOn, string name) { IntPtr handle; UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject, basedOn.InternalObject, name, out handle); WrapperUtils.CheckStatus(status); return(handle); }
public MockIRGenerator(IRGenerator basedOn) : this(basedOn, null) { }
public MockIRGenerator(IRGenerator basedOn, string name) : this(CreateBasedOn(basedOn, name), false) { }
public override bool Initialize() { // string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); var dir = GTPath.GetLocalApplicationDataPath(); DirectoryInfo dirInfo = new DirectoryInfo(new Uri(dir).LocalPath); this.context = new Context(dirInfo.FullName + Path.DirectorySeparatorChar + configFile); this.ir = context.FindExistingNode(NodeType.IR) as IRGenerator; if (this.ir != null) return true; else return false; }