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