Associate
This is doing my head.
I've got a USB device constantly pumping out image data. I want to use Direct3D to paint this data to multiple child windows in an MdiContainer in real-time.
My first attempt was to create an instance of a render form after clicking a button in the MdiContainer and start a thread running the render loop. Problem is that when it comes to doing the Device.Present(renderform) or SwapChain.Present(renderform) it'll give me an error because the window it's trying to print to was created outside of the current thread.
So ok I think I'll create the instance of the window inside the render loop thread, but if I do that I can't set the MdiParent to the MdiContainer form (with something like "renderform.MdiParent = mainform" as again it'll tell me that I'm trying to access a control created outside the current thread (I guess the mainform created at Application.Run).
Catch 22 :/
Also is it even possible to have multiple render loops on the same direct3d device running in threads? Can't really think of any other way of having different windows being rendered at the same time.
I've got a USB device constantly pumping out image data. I want to use Direct3D to paint this data to multiple child windows in an MdiContainer in real-time.
My first attempt was to create an instance of a render form after clicking a button in the MdiContainer and start a thread running the render loop. Problem is that when it comes to doing the Device.Present(renderform) or SwapChain.Present(renderform) it'll give me an error because the window it's trying to print to was created outside of the current thread.
So ok I think I'll create the instance of the window inside the render loop thread, but if I do that I can't set the MdiParent to the MdiContainer form (with something like "renderform.MdiParent = mainform" as again it'll tell me that I'm trying to access a control created outside the current thread (I guess the mainform created at Application.Run).
Catch 22 :/
Also is it even possible to have multiple render loops on the same direct3d device running in threads? Can't really think of any other way of having different windows being rendered at the same time.