public void Render(TempleDll templeDll) { if (_handle != IntPtr.Zero) { AnimatedModel_Render(templeDll.Handle, _handle); } }
private void InitializeRendering() { // Get the topmost window var parentWindow = Window.GetWindow(this); InteropImage.WindowOwner = new WindowInteropHelper(parentWindow).Handle; InteropImage.OnRender = DoRender; InteropImage.RequestRender(); _templeDll = new TempleDll(DataPath); }
public void Dispose() { if (Instance == this) { Instance = null; } if (Handle != IntPtr.Zero) { TempleDll_Unload(Handle); Handle = IntPtr.Zero; } }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); _templeDll = new TempleDll(@"C:\TemplePlus\ToEE\"); }
public static AnimatedModel FromFiles(TempleDll templeDll, string skmPath, string skaPath) { return(new AnimatedModel(AnimatedModel_FromFiles(templeDll.Handle, skmPath, skaPath))); }
public static AnimatedModel FromFiles(TempleDll templeDll, string skmPath, string skaPath) { return new AnimatedModel(AnimatedModel_FromFiles(templeDll.Handle, skmPath, skaPath)); }