Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
That's great! Thanks!
|
|
05-13-2011 05:47 AM |
|
Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
what did you do, Dynad? It cant see Win32 (there is Microsoft.Win32, MS.Win32 but nothing has User32 namespace).
|
|
05-13-2011 02:42 PM |
|
Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
Works great! Thanks again!
|
|
05-13-2011 03:12 PM |
|
Dynad
Member
|
RE: Embedding an Esenthel render window into large industrial application
(05-12-2011 09:10 PM)flcpy Wrote: what do you mean by drawing multiple renders on a win32 window?
What i meant is if its also possible to have 2 viewports inside the win32 app. So 2 borders with 2 different viewports. But probably that won't work because of having just 1 Hwnd ptr.
There is always evil somewhere, you just have to look for it properly.
|
|
05-13-2011 04:54 PM |
|
rndbit
Member
|
RE: Embedding an Esenthel render window into large industrial application
(05-13-2011 04:54 PM)Dynad Wrote: (05-12-2011 09:10 PM)flcpy Wrote: what do you mean by drawing multiple renders on a win32 window?
What i meant is if its also possible to have 2 viewports inside the win32 app. So 2 borders with 2 different viewports. But probably that won't work because of having just 1 Hwnd ptr.
in theory it should work. create two regions (idk how exactly those things are named in win32 gui, i use Qt) and set their handles as parents to your two created esenthel windows. this however requires new running esenthel instance for each viewport. Much easier would be to implement viewports in esenthel itself.
|
|
05-13-2011 05:12 PM |
|
Dynad
Member
|
RE: Embedding an Esenthel render window into large industrial application
Whats the point of running 2 instances of EE? That won't make a very good tool if u ask me... And adding viewports in EE isnt what im looking for... why should i going for this way if you use the gui layout of EE...
There is always evil somewhere, you just have to look for it properly.
|
|
05-13-2011 05:24 PM |
|
flcpy
Member
|
RE: Embedding an Esenthel render window into large industrial application
I think you need to modify Esenthel. I hope that you can change the sources of this engine.
|
|
05-13-2011 06:03 PM |
|
Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
|
|
05-13-2011 08:34 PM |
|
Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
Thanks, (I use DotNetBar)
I have small problem with that. When I close that WPF control, esenthel app still works and I cant show that control again. Same when I turn off editor in debug mode. After clicking close button debugger still works. How to kill Esenthel process (thread)? Should I call StateExit.set() ?
EDIT: Ah, just I should return false in update()
(This post was last modified: 05-13-2011 09:06 PM by Barthap.)
|
|
05-13-2011 09:00 PM |
|
flcpy
Member
|
RE: Embedding an Esenthel render window into large industrial application
Do you call DestroyWindowCore and then break the loop in Update of esenthel ?
(This post was last modified: 05-13-2011 09:10 PM by flcpy.)
|
|
05-13-2011 09:10 PM |
|
Esenthel
Administrator
|
RE: Embedding an Esenthel render window into large industrial application
StateExit.set() is also good
|
|
05-13-2011 09:13 PM |
|
Barthap
Member
|
RE: Embedding an Esenthel render window into large industrial application
I retutn false in update() and it works
|
|
05-13-2011 09:38 PM |
|