Exemplo n.º 1
0
 public void Render(TempleDll templeDll)
 {
     if (_handle != IntPtr.Zero)
     {
         AnimatedModel_Render(templeDll.Handle, _handle);
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     if (Instance == this)
     {
         Instance = null;
     }
     if (Handle != IntPtr.Zero)
     {
         TempleDll_Unload(Handle);
         Handle = IntPtr.Zero;
     }
 }
Exemplo n.º 4
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     _templeDll = new TempleDll(@"C:\TemplePlus\ToEE\");
 }
Exemplo n.º 5
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     _templeDll = new TempleDll(@"C:\TemplePlus\ToEE\");
 }
Exemplo n.º 6
0
 public static AnimatedModel FromFiles(TempleDll templeDll, string skmPath, string skaPath)
 {
     return(new AnimatedModel(AnimatedModel_FromFiles(templeDll.Handle, skmPath, skaPath)));
 }
Exemplo n.º 7
0
 public static AnimatedModel FromFiles(TempleDll templeDll, string skmPath, string skaPath)
 {
     return new AnimatedModel(AnimatedModel_FromFiles(templeDll.Handle, skmPath, skaPath));
 }