Update viewport

Archives Forums/Blitz3D SDK Programming/Update viewport

vamman(Posted 2009) [#1]
Can someone tell me how easy it would be to update the viewport using the Blitz3D SDK? I've read some of the forum posts and it sounds like the ability to create a rendercontrol or use a panel/image box for the render window inside of a WinForms application.

However, I haven't seen anyone show any example of creating a Window and then doing some work (like moving an object around inside the window after the timer is engaged). What is the process for doing some simple like this? How do you render a new event to the render window when active.

I am just trying to grasp an understanding of the SDK and understand how one can perform a particular task inside of a viewport.

Is there a callback mechanism?


Warner(Posted 2009) [#2]
There is a callback mechanism, yes. Also, before calling Graphics3D, you can assign an HWND to the sdk. It will then initialize a DX7 device onto the element indicated by this HWND. When RenderWorld and Flip are called, this DX7 device is updated.